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

Fix dealing with locally patched packages #509

Merged
merged 1 commit into from
Jun 5, 2019
Merged

Fix dealing with locally patched packages #509

merged 1 commit into from
Jun 5, 2019

Conversation

nicolas-grekas
Copy link
Member

Fixes #508
Happens on the CI when local packages are built for testing PRs.

@fabpot
Copy link
Member

fabpot commented Jun 5, 2019

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 42bdc9f into symfony:master Jun 5, 2019
fabpot added a commit that referenced this pull request Jun 5, 2019
This PR was merged into the 1.2-dev branch.

Discussion
----------

Fix dealing with locally patched packages

Fixes #508
Happens on the CI when local packages are built for testing PRs.

Commits
-------

42bdc9f Fix dealing with locally patched packages
@@ -78,6 +78,8 @@ public function removeLegacyTags(array $data): array
foreach ($versions as $version => $composerJson) {
if ('dev-master' === $version) {
$normalizedVersion = $this->versionParser->normalize($devMasterAlias);
} elseif (!isset($composerJson['version_normalized'])) {
Copy link
Member

Choose a reason for hiding this comment

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

why not attempting to read $composerJson['version'] and normalizing it (or just $version) ? We have access to the VersionParser to normalize here.

Copy link
Member Author

Choose a reason for hiding this comment

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

because we don't really care: when this happens, we always want to keep the "version" anyway

@nicolas-grekas nicolas-grekas deleted the fix branch June 5, 2019 15:20
tgalopin pushed a commit to tgalopin/flex that referenced this pull request Dec 3, 2020
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.

Undefined index: version_normalized
3 participants