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

Narrow range in "replace" section of composer.json #3

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

nicolas-grekas
Copy link

@nicolas-grekas nicolas-grekas commented Jun 18, 2020

This "replace" range makes the package conflict with dependent that conflict with e.g. "ocramius/package-versions": "<1.3"

See getsentry/sentry-symfony#347 for a real-world application of this issue.

This could also be considered as a bug in Composer itself since the range has a non-empty intersection with the complement of the conflicting rule. But I don't know how difficult it would be to make Composer consider this refinement.

@Seldaek
Copy link
Member

Seldaek commented Jun 19, 2020

IMO the replace needs to stay as it to make sure that if some of your lib requires ocramius/package-versions 1.2.* for example it can be overridden by requiring this fork.

On the other hand, I guess releasing a new version with a narrower replace will allow composer to find either version 1.8.0 or 1.8.1 as a satisfactory solution, so it's probably fine.

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