Skip to content

Rename module from ccin2p3-cpan to meltwater-cpan - #2

Closed
dennisboege-devoba wants to merge 9 commits into
dodevops:masterfrom
dennisboege-devoba:fix/metadata-name-meltwater-cpan
Closed

dennisboege-devoba wants to merge 9 commits into
dodevops:masterfrom
dennisboege-devoba:fix/metadata-name-meltwater-cpan

Conversation

@dennisboege-devoba

Copy link
Copy Markdown

Problem

Puppetfiles consume this module as meltwater-cpan, which is also the name it ships under on the Forge. metadata.json in this fork still carries the upstream ccin2p3-cpan identifier. The dodevops Puppetfile dependency resolver matches modules by metadata name, so it cannot link this fork to mod 'meltwater-cpan' in a Puppetfile. It falls back to the Forge release of meltwater-cpan, which caps puppetlabs-stdlib at < 9.0.0, and the resolve fails against stdlib 10:

Error: No possible version for requirement meltwater-cpan => puppetlabs-stdlib (>=4.6.0 <9.0.0)

Change

One line in metadata.json: "name": "ccin2p3-cpan" becomes "name": "meltwater-cpan". Nothing else is touched.

Impact

Any downstream consumer that referenced the fork by its ccin2p3-cpan name would need to switch to meltwater-cpan. We checked our control-repo and found no such reference; the dodevops Puppetfile corpus uses meltwater-cpan everywhere.

dploeger and others added 9 commits January 10, 2024 08:08
- Gemfile, Rakefile and spec_helper based on voxpupuli-test and OpenVox 8
- stdlib 9.7.0 fixture from the Forge
- puppet-lint and rubocop autocorrections, remaining offenses in
  .rubocop_todo.yml, parameter type/doc and anchor checks disabled
- Remove PDK, Travis, GitLab CI and AppVeyor files
The specs switched on the legacy osfamily fact, which facterdb no longer
provides, so no family specific example ran. The config examples only
covered EL7 and used verify_contents from puppetlabs_spec_helper.
Puppetfiles consume this module as meltwater-cpan, but metadata.json
still carries the upstream ccin2p3-cpan name. The dodevops Puppetfile
dependency resolver matches modules by metadata name and cannot link
this fork to `mod 'meltwater-cpan'`. It falls back to the Forge release,
which caps stdlib at < 9.0.0 and breaks the resolve against stdlib 10.
@dennisboege-devoba

Copy link
Copy Markdown
Author

Closing: wrong fix on the wrong base. The real cause is in dodevops/puppet-dependency-resolver, which drops the :tag => parameter when parsing a Puppetfile line and reads metadata.json from the repo's default branch instead of the tagged commit. A fix for that is coming as a separate PR against the resolver.

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.

2 participants