Skip to content
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

Allow to specific custom version for path repositories #6578

Closed
wants to merge 1 commit into from

Conversation

vtsykun
Copy link
Contributor

@vtsykun vtsykun commented Jul 30, 2017

Purpose

As developer I want to ignore guess version for path repository and specific it in main composer.json. For example I develop new feature for composer installable package (local branch name "feature/example") and want to test it on my project. But I can not install this package without modification main composer.json or composer.json in this package.
These changes allow to ignore guess version.

Second example
I want to install for testing "symfony/symfony": "dev-master", but some package requires a specific symfony version.

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

  Problem 1
    - incenteev/composer-parameter-handler v2.1.2 requires symfony/yaml ~2.3|~3.0 -> satisfiable by symfony/symfony[v3.3.5], s

But I use this approach, I can circumvent these requirements and install master from path
selection_073

Usage

    "repositories": [
        {
            "type": "path",
            "url": "package/*",
            "options": {
                "versions": {"symfony/symfony": "3.3.6"}
            }
        }
    ]

@Seldaek
Copy link
Member

Seldaek commented Aug 7, 2017

The way to do this IMO is to use aliases so you can require "symfony/symfony": "dev-master as 3.3.1000" for example and keep the path repo untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants