composer-patches
composer-patches copied to clipboard
Error during Ci/CD
Do you have any Ideas, why i get this error?
> pre-autoload-dump: Vaimo\ComposerPatches\Plugin->postInstall
Processing patches configuration
- Removing league/fractal (0.19.2)
Executing async command (CWD): rm -rf '/builds/builder/backend/vendor/league/fractal'
- Downloading league/fractal (0.19.2)
Downloading https:/api.github.com/repos/thephpleague/fractal/zipball/06dc15f6ba38f2dde2f919d3095d13b571190a7c
- Installing league/fractal (0.19.2): Extracting archive
Executing async command (CWD): '/usr/bin/unzip' -qq '/builds/builder/backend/vendor/composer/tmp-d28b9e921dd7aa5a20cb8b543f1f5182' -d '/builds/builder/backend/vendor/composer/5915b398'
Executing command (CWD): rm -rf '/builds/builder/backend/vendor/composer/5915b398'
Executing command (CWD): rm -rf '/builds/builder/backend/vendor/league/fractal'
[302] https:/api.github.com/repos/thephpleague/fractal/zipball/06dc15f6ba38f2dde2f919d3095d13b571190a7c
Following redirect (1) https:/codeload.github.com/thephpleague/fractal/legacy.zip/06dc15f6ba38f2dde2f919d3095d13b571190a7c
[200] https:/codeload.github.com/thephpleague/fractal/legacy.zip/06dc15f6ba38f2dde2f919d3095d13b571190a7c
- Applying patches for league/fractal (1)
~ laravel/laravel: patches/thephpleague/fractal/ReturnTypeWillChange.patch [NEW]
fix ReturnTypeWillChange)
Executing command (/builds/builder/backend/vendor/league/fractal): which patch
The provided cwd "/builds/builder/backend/vendor/league/fractal" does not exist.
#0 phar://usr/local/bin/composer/vendor/symfony/process/Process.php(252): Symfony\Component\Process\Process->start(Object(Closure), Array)
#1 phar://usr/local/bin/composer/src/Composer/Util/ProcessExecutor.php(128): Symfony\Component\Process\Process->run(Object(Closure))
I believe I found what causes the bug,
This is because I used no-cache
flag during composer install composer install --no-cache
And I believe this is not a correct behavior for the patcher.