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

Parse self.version in replaced packages #59

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

Jean85
Copy link
Contributor

@Jean85 Jean85 commented Feb 5, 2018

As promised in #57 (comment)

[EDIT] Double push is due to rebase on master

@Ocramius Ocramius added this to the 1.3.0 milestone Feb 5, 2018
@Ocramius Ocramius self-assigned this Feb 5, 2018
@@ -165,7 +165,12 @@ private static function getVersions(Locker $locker, RootPackageInterface $rootPa
}

foreach ($rootPackage->getReplaces() as $replace) {
yield $replace->getTarget() => $replace->getPrettyConstraint() . '@' . $rootPackage->getSourceReference();
$version = $replace->getPrettyConstraint();
if ($version === 'self.version') {
Copy link
Owner

Choose a reason for hiding this comment

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

Is there something other than self.version that we can add to the tests to demonstrate alternate outcomes? Or is this the only "special" version type in composer.json?

Copy link
Owner

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Looked up https://github.com/Ocramius/PackageVersions/pull/59/files#r165964163, couldn't find anything, therefore shipping this one as-is 👍

@Ocramius Ocramius merged commit 4489d50 into Ocramius:master Feb 5, 2018
@Jean85 Jean85 deleted the parse-replaced-versions branch February 5, 2018 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants