drud / quicksprint

A basic toolkit to get people started with ddev and a Drupal codebase on macOS, Linux, or WIndows
Other
24 stars 16 forks source link

Windows, simple environment: Untarring drupal8 tarball fails, tar: ./drupal8/vendor/bin/composer: Cannot create symlink #151

Closed rfay closed 5 years ago

rfay commented 5 years ago

Composer on Windows seems to be creating a setup that assumes Windows symlinks are enabled. We'll have to convince it otherwise.

    Untarring sprint.tar.xz
    tar: ./drupal8/vendor/bin/composer: Cannot create symlink to 
    ‘../composer/composer/bin/composer’: No such file or directory
rfay commented 5 years ago

This is a result of https://www.drupal.org/project/drupal/issues/3082866, and is a core issue. But it triggers a full-on failure when the composer build is tarred up as it is here. It's likely this issue will be resolved before Drupalcon Copenhagen, but it would sure be nice if it could be worked around here.

rfay commented 5 years ago

The reason the automated tests didn't fail on this bug is that the Windows tests are run on Windows, so the package is built on Windows, so composer creates a pseudo-link which is actually a script. Avoiding the problem. The only way it could have been caught is if the WIndows tests/testbots actually downloaded the built package from a Linux build and then tried them out, which would be awkward and wouldn't test the possibility of package-build-testing on Windows.