-
-
Notifications
You must be signed in to change notification settings - Fork 109
Documented dry run command does not check locked dependencies #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Writing down reproducer so far (trying with composer v2, since that's what I got installed on my system at the moment): mkdir /tmp/issue-66-example
cd /tmp/issue-66-example
echo "{}" > composer.json
composer require typo3/cms-core:10.4.5
composer require --dev roave/security-advisories:dev-master Leads to:
I then tried to add {
"require": {
"typo3/cms-core": "^10.4.5"
},
"require-dev": {
"roave/security-advisories": "dev-master"
}
} Then: composer update --dry-run roave/security-advisories Leads to
|
I suggest:
|
Hey, thanks for the super fast response. I can not reproduce the error when I create a new repository with new dependencies. Since all dependencies are up to date on Packagist already, the installation will fail just as expected. The situation described is: I created the repository 15 days ago and added all dependencies which were valid back then (see example commits in https://github.com/pixelbrackets/SecurityAdvisoriesTest/, TYPO3 was installed using The composer.lock file still has 10.4.5, see https://github.com/pixelbrackets/SecurityAdvisoriesTest/blob/master/composer.lock#L3948. I'll check for caches now. |
@pixelbrackets so if I check out |
@Ocramius Yes |
Just tried your repo: cd /tmp
git clone git@github.com:pixelbrackets/SecurityAdvisoriesTest.git
cd SecurityAdvisoriesTest/
composer update --dry-run roave/security-advisories Produces:
Tried with composer self-update --1
Then: composer update --dry-run roave/security-advisories Does not work as expected, as it installs everything:
I think you may have found a bug in SAT in |
Oh, thanks for the test with different Composer versions. Can confirm this behaviour, Composer version 1 does not work as expected, version 2 will work as expected. I will open an Issue on Composer and reference this issue. Edit: Issue composer/composer#9082 |
Thanks! I'll close it here meanwhile. Should we need adjustments to |
Uh oh!
There was an error while loading. Please reload this page.
The README states that the following command is sufficient to manually trigger a security version check (see #59).
This does not seem to work however.
I made an example repository (https://github.com/pixelbrackets/SecurityAdvisoriesTest/) with the TYPO3 CMS locked to version 10.4.5. The skeleton project has the core package »typo3/cms-core« as dependency. And I added »roave/security-advisories« as dependency as well.
A new TYPO3 version 10.4.6, containing security fixes, was released today: https://packagist.org/packages/typo3/cms-core#v10.4.6
The version constraint is already merged into »roave/security-advisories«: https://github.com/Roave/SecurityAdvisories/blob/master/composer.json#L216
The given command should now return any kind of information, that 10.4.5 is not valid anymore. This is not the case however.
I use Composer version 1.10.9.
The text was updated successfully, but these errors were encountered: