-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix: don't error out on out-of-sync lock file
As far as I can see, the `--no-check-lock` argument has been available since Composer 1.0, so adding this argument to the `composer validate` command should be safe and should prevent the issues as reported in 206. Includes tests (though the test isn't running properly yet). Fixes 206
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_paths.sh "" "../fixtures/out-of-sync-lock" | ||
match_max 100000 | ||
|
||
expect "::debug::Composer path is '*'\r | ||
::debug::Composer version *\r | ||
::debug::Composer cache directory found at '*'\r | ||
::debug::File composer.json found at '../fixtures/out-of-sync-lock/composer.json'\r | ||
::debug::File composer.lock path computed as '../fixtures/out-of-sync-lock/composer.lock'\r | ||
::set-output name=command::*\r | ||
::set-output name=cache-dir::*\r | ||
::set-output name=json::../fixtures/out-of-sync-lock/composer.json\r | ||
::set-output name=lock::../fixtures/out-of-sync-lock/composer.lock\r | ||
" | ||
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "ramsey/composer-install-test-out-of-sync-lock", | ||
"description": "Tests composer-install when composer.lock file is out of sync.", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Ben Ramsey", | ||
"email": "ben@benramsey.com" | ||
} | ||
], | ||
"config": { | ||
"platform": { | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.