Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

(GH-10) Account for legacy style version requirement in module metadata#11

Merged
glennsarti merged 1 commit into
masterfrom
gh-10
Jul 7, 2020
Merged

(GH-10) Account for legacy style version requirement in module metadata#11
glennsarti merged 1 commit into
masterfrom
gh-10

Conversation

@glennsarti

@glennsarti glennsarti commented Jul 7, 2020

Copy link
Copy Markdown
Owner

Fixes #10

Previously the resolver assumed that all module version requirements would be
specified using version_requirements [1]. However extremely old modules on the
Puppet Forge still use the old version_range parameter, for example PUP-2781 [2]

This commit updates the module specification parser to try the correct name,
then the old legacy name and then revert to an open dependency (>= 0).

This commit also adds tests for these scenarios

[1] https://puppet.com/docs/puppet/latest/modules_metadata.html#specifying-dependencies
[2] https://tickets.puppetlabs.com/browse/PUP-2781

Previously the resolver assumed that all module version requirements would be
specified using version_requirements [1]. However extremely old modules on the
Puppet Forge still use the old version_range parameter, for example PUP-2781 [2]

This commit updates the module specification parser to try the correct name,
then the old legacy name and then revert to an open dependency (>= 0).

This commit also adds tests for these scenarios
\
[1] https://puppet.com/docs/puppet/latest/modules_metadata.html#specifying-dependencies
[2] https://tickets.puppetlabs.com/browse/PUP-2781
@glennsarti
glennsarti merged commit 115fba4 into master Jul 7, 2020
@glennsarti glennsarti added this to the 0.3.0 milestone Jul 7, 2020
@glennsarti
glennsarti deleted the gh-10 branch July 11, 2020 11:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse': undefined method gsub' for nil:NilClass (NoMethodError)

1 participant