legacy-cli icon indicating copy to clipboard operation
legacy-cli copied to clipboard

All my D8 sites seem to think they are on the old file structure when they are not

Open scotthooker opened this issue 7 years ago • 2 comments

smp:cms-vision Scott$ ls -l total 536 -rw-r--r-- 1 Scott staff 18046 28 Mar 12:06 LICENSE -rw-r--r-- 1 Scott staff 2146 28 Mar 12:06 README.md lrwxr-xr-x 1 Scott staff 34 4 Apr 12:50 _www -> .platform/local/builds/default/web -rw-r--r-- 1 Scott staff 2661 4 Apr 15:26 composer.json -rw-r--r-- 1 Scott staff 232370 4 Apr 15:27 composer.lock drwxr-xr-x 3 Scott staff 102 28 Mar 12:06 config drwxr-xr-x 10 Scott staff 340 4 Apr 13:33 console drwxr-xr-x 6 Scott staff 204 28 Mar 12:08 docker -rw-r--r-- 1 Scott staff 1038 7 Apr 09:55 docker-compose.yml drwxr-xr-x 4 Scott staff 136 28 Mar 12:06 drush -rw-r--r-- 1 Scott staff 481 28 Mar 12:06 phpunit.xml.dist drwxrwxr-x 3 Scott staff 102 28 Mar 12:13 private drwxr-xr-x 4 Scott staff 136 28 Mar 12:06 scripts drwxrwxr-x 4 Scott staff 136 1 Apr 03:14 shared drwxr-xr-x 44 Scott staff 1496 7 Apr 09:55 vendor drwxr-xr-x 21 Scott staff 714 7 Apr 10:00 web drwxr-xr-x 2 Scott staff 68 28 Mar 12:08 xhprof smp:cms-vision Scott$

However I get told

You are in a project using an old file structure, from previous versions of the Platform.sh CLI. Migrate to the new structure? [Y/n] n

scotthooker avatar Apr 10 '17 12:04 scotthooker

My d7 sites also think this... How can I stop this from happening?

You are in a project using an old file structure, from previous versions of the Platform.sh CLI. Fix this with: platform legacy-migrate

However this is my file structure

LT5012:the_platform shooker$ ls _www libraries project.make.yml themes docker modules robots.txt xhprof docker-compose.yml patches settings.php google2b5ec40c8ce33883.html php.ini tests LT5012:the_platform shooker$

You can see its not the old format.

scotthooker avatar Aug 15 '17 10:08 scotthooker

It sounds like you have a .platform-project file somewhere, possibly in a directory higher up than your projects. Find it with something like:

find ~ -d -name .platform-project

and delete it.

pjcdawkins avatar Aug 15 '17 10:08 pjcdawkins

Solved

scotthooker avatar Feb 08 '24 08:02 scotthooker