Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

composer updates to the same version if sha1 locked #2487

Closed
c33s opened this Issue · 2 comments

3 participants

@c33s

it is quite a strange behavior, for some packags, composer updates to the same version all the time, if the packages is sha1 locked.

the package cedriclombardot/admingenerator-generator-bundle requires the following packages

white-october/pagerfanta-bundle: 1.0.*@dev
afarkas/html5shiv: dev-master

to use them in stable env i locked the sha1 hash from the master, also i need to add the packages in my composer file to overcome the min-stability flag.

composer.yml sha1 locked

--- snip ---
cedriclombardot/admingenerator-generator-bundle: 'dev-master#6dd565dacb6e668b9bcfa216a2acca356949375c'
avocode/form-extensions-bundle:                  'dev-master#cd83e011f7fcc979cb5714c33423845c7ce36f0a'
white-october/pagerfanta-bundle:                 'dev-master#606467f9e9f9e80975128db589eec2f9d11139c2'
afarkas/html5shiv:                               'dev-master#31a7a89d9f164ab55d317ce1e15c84dc50c51977'
--- snip ---

1st run

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating afarkas/html5shiv dev-master (cec73ff => 31a7a89)
    Checking out 31a7a89d9f164ab55d317ce1e15c84dc50c51977
  - Updating cedriclombardot/admingenerator-generator-bundle dev-master (2c68855 => 6dd565d)
    Checking out 6dd565dacb6e668b9bcfa216a2acca356949375c
  - Updating avocode/form-extensions-bundle dev-master (178ee27 => cd83e01)
    Checking out cd83e011f7fcc979cb5714c33423845c7ce36f0a

Writing lock file
Generating autoload files
Compiling component files
Updating the "app/config/parameters.yml" file.

following runs

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating afarkas/html5shiv dev-master (31a7a89 => 31a7a89)
    Checking out 31a7a89d9f164ab55d317ce1e15c84dc50c51977
  - Updating cedriclombardot/admingenerator-generator-bundle dev-master (6dd565d => 6dd565d)
    Checking out 6dd565dacb6e668b9bcfa216a2acca356949375c
  - Updating avocode/form-extensions-bundle dev-master (cd83e01 => cd83e01)
    Checking out cd83e011f7fcc979cb5714c33423845c7ce36f0a

Generating autoload files
Compiling component files
Updating the "app/config/parameters.yml" file.

if i use only the dev-master flag, everything works perfect.
composer.yml dev master locked

--- snip ---
cedriclombardot/admingenerator-generator-bundle: 'dev-master'
avocode/form-extensions-bundle:                  'dev-master'
white-october/pagerfanta-bundle:                 'dev-master#606467f9e9f9e80975128db589eec2f9d11139c2'
afarkas/html5shiv:                               'dev-master'
--- snip ---

1st run

  - Updating afarkas/html5shiv dev-master (31a7a89 => cec73ff)
    Checking out cec73ff6d8d8f25423439efa8940fd86da46e146
  - Updating cedriclombardot/admingenerator-generator-bundle dev-master (6dd565d => 2c68855)
    Checking out 2c68855cc7728664bfb9aa3cd4cbf2097d5d8890
  - Updating avocode/form-extensions-bundle dev-master (cd83e01 => 178ee27)
    Checking out 178ee272e8476c95ff81a84b4c55cf7e55592475

following runs

Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
Compiling component files
Updating the "app/config/parameters.yml" file.

white-october/pagerfanta-bundle because it uses the 1.0.*@dev syntax

@slbmeh

That is somewhat strange, but it doesn't look as if it has anything to do with the notation format used. I believe the difference is when you are locked behind the latest satisfiable revision.

@Seldaek Seldaek closed this in 2ae0843
@Seldaek
Owner

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.