cannot update on using version "x.y.z as dev-master" (first update works) #2485

Closed
c33s opened this Issue Dec 5, 2013 · 2 comments

Comments

Projects
None yet
2 participants

c33s commented Dec 5, 2013

i am trying to work without using so many dev-master packages by locking them to the sha1 hash or by using a specific version.

the suncat/mobile-detect-bundle which is only available as dev-master requires mobiledetect/mobiledetectlib: dev-master

it is no problem to include the packages like this (also with if i add the sha1 value):

    suncat/mobile-detect-bundle:                     'dev-master'
    mobiledetect/mobiledetectlib:                    'dev-master'

of course i cannot install the packages like that:

    suncat/mobile-detect-bundle:                     'dev-master'
    mobiledetect/mobiledetectlib:                    '2.7.5'

which would give me the following error message:

  Problem 1
    - Installation request for my/project 2.3.x-dev -> satisfiable by my/project[2.3.x-dev].
    - my/project 2.3.x-dev requires suncat/mobile-detect-bundle dev-master#d99209be075f61ebdfd6cabd3c3f9fef10a5492b -> satisfiable by suncat/mobile-detect-bundle[dev-master].
    - suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib dev-master -> satisfiable by mobiledetect/mobiledetectlib[dev-master].
    - suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib dev-master -> satisfiable by mobiledetect/mobiledetectlib[dev-master].
    - Removal request for mobiledetect/mobiledetectlib == 9999999-dev

if i have not installed both packages before suncat/mobile-detect-bundleand mobiledetect/mobiledetectlib (or delete the packages from the vendor first)

composer update works flawless with the following setting:

    suncat/mobile-detect-bundle:                     'dev-master#d99209be075f61ebdfd6cabd3c3f9fef10a5492b'
    mobiledetect/mobiledetectlib:                    '2.7.5 as dev-master'
  - Installing mobiledetect/mobiledetectlib (2.7.5)
    Loading from cache

  - Installing suncat/mobile-detect-bundle (dev-master d99209b)
    Cloning d99209be075f61ebdfd6cabd3c3f9fef10a5492b

but if i update again with composer update the update fails

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for my/package 2.3.x-dev -> satisfiable by my/package[2.3.x-dev].
    - Removal request for mobiledetect/mobiledetectlib == 9999999-dev
    - my/package 2.3.x-dev requires suncat/mobile-detect-bundle dev-master#d99209be075f61ebdfd6cabd3c3f9fef10a5492b -> satisfiable by suncat/mobile-detect-bundle[dev-master].
    - suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib dev-master -> satisfiable by mobiledetect/mobiledetectlib[dev-master].
    - suncat/mobile-detect-bundle dev-master requires mobiledetect/mobiledetectlib dev-master -> satisfiable by mobiledetect/mobiledetectlib[dev-master].
    - Removal request for mobiledetect/mobiledetectlib == 9999999-dev

bug? wrong usage of "as"?

Owner

Seldaek commented Dec 6, 2013

Sounds like a bug because it's not such a common use case of aliases I think. As a workaround for now you can probably require "dev-master#2.7.5" or whatever the exact tag is for that version.

Owner

Seldaek commented Mar 7, 2017

Closing as it's so old and doesn't seem to be an issue anymore.

@Seldaek Seldaek closed this Mar 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment