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

Ability to select composer version #2110

Closed
wants to merge 2 commits into from
Closed

Ability to select composer version #2110

wants to merge 2 commits into from

Conversation

asafov
Copy link
Contributor

@asafov asafov commented Jun 24, 2020

Q A
Bug fix? No
New feature? Yes
BC breaks? No
Deprecations? No
Fixed tickets #2012

run("cd {{release_path}} && curl -sS https://getcomposer.org/installer | {{bin/php}}");
$installCommand = "cd {{release_path}} && curl -sS https://getcomposer.org/installer | {{bin/php}}";

$composerVersion = get('composer_version', false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if instead of specifying version we will put composer in .dep dir? This way user will not need this hack to fix it's version.

@antonmedv antonmedv closed this Oct 7, 2020
@vandres
Copy link

vandres commented Oct 26, 2020

@antonmedv What is the solution for this atm? Have some failed builds, because Deployer is pulling Composer 2, but our projects still using Composer 1

@antonmedv
Copy link
Member

You can try to migrate to v7 (migration docs are coming).

Simple mitigation is: install composer of desired version on host in PATH.

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.

3 participants