Cannot override composer #848

Closed
till opened this Issue Jun 28, 2012 · 5 comments

Projects

None yet

3 participants

@till
Contributor
till commented Jun 28, 2012

Inside my fork of satis, I'm trying to rely on local composer branch which contains a couple additions to composer which we desperately need.

Here is my minimal composer.json:

{
    "name": "composer/bug",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/till/composer"
        }
    ],
    "require": {
        "php": ">=5.3.2",
        "composer/composer": "dev-feature-dist"
    }
}

So what I expect is, that I get the branch feature-dist after I run ./composer.phar install, but I get another:

$ ./composer.phar install                                                                                                                                                  [13:03:32]
Installing dependencies                                       
  - Installing symfony/process (dev-master)
    Cloning v2.1.0-BETA1

  - Installing symfony/finder (dev-master)
    Cloning v2.1.0-BETA1

  - Installing symfony/console (dev-master)
    Cloning 808bf42b4b74c12e6c6a6a9750688035f1c49f9c

  - Installing seld/jsonlint (1.0.0)
    Downloading: 100%         

  - Installing justinrainbow/json-schema (1.1.0)
    Downloading: 100%         

  - Installing composer/composer (dev-download-fun)
    Cloning 71cecd8e93ddf87707b8655599ed0e3950409ef3

Writing lock file
Generating autoload files
@Seldaek
Member
Seldaek commented Jun 28, 2012

It does it too here, not sure why though, "funny" behavior.

@till
Contributor
till commented Jun 28, 2012

Yeah, so funny.

@till
Contributor
till commented Jul 3, 2012

Can you guys fix this with the next alpha?

@basz
basz commented Jul 4, 2012

Something similar encountered : https://gist.github.com/3047292 hope it helps

@naderman naderman added a commit to naderman/composer that referenced this issue Jul 11, 2012
@naderman naderman Merge branch 'versioncomp'
* versioncomp:
  Correctly treat dev versions for other types of comparisons and add tests
  Remove useless ternary operator
  Prevent seeing dev versions as equal when they are not, fixes #848
302948d
@Seldaek Seldaek closed this in 2f71302 Jul 11, 2012
@Seldaek
Member
Seldaek commented Jul 12, 2012

Alright this should work now.

@digitalkaoz digitalkaoz pushed a commit to digitalkaoz/composer that referenced this issue Nov 22, 2013
@Seldaek Seldaek Prevent seeing dev versions as equal when they are not, fixes #848 a7efae5
@digitalkaoz digitalkaoz pushed a commit to digitalkaoz/composer that referenced this issue Nov 22, 2013
@naderman naderman Merge branch 'versioncomp'
* versioncomp:
  Correctly treat dev versions for other types of comparisons and add tests
  Remove useless ternary operator
  Prevent seeing dev versions as equal when they are not, fixes #848
c395b7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment