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 compat. with modulesync_config 9.2.0; rm PUPPET_GEM_VERSION #65

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

jhoblitt
Copy link
Member

Resolves this error:

/opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/3.2.0/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'puppet (~> 7.0)' in locally installed gems. (Bundler::GemNotFound)

This appears to have been caused by this change:

voxpupuli/modulesync_config#925

Which allows the version of puppet installed in the bundle to be >= 8.

Resolves this error:

    /opt/hostedtoolcache/Ruby/3.2.5/x64/lib/ruby/3.2.0/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'puppet (~> 7.0)' in locally installed gems. (Bundler::GemNotFound)

This appears to have been caused by this change:

voxpupuli/modulesync_config#925

Which allows the version of puppet installed in the bundle to be >= 8.
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I don't mind dropping this and relying on the Gemfile to contain the correct constraint.

@@ -48,5 +48,4 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
BLACKSMITH_FORGE_USERNAME: '${{ secrets.username }}'
BLACKSMITH_FORGE_API_KEY: '${{ secrets.api_key }}'
PUPPET_GEM_VERSION: "~> 7.0"
Copy link
Member

Choose a reason for hiding this comment

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

We should have always set this on a higher level, around line 25 so it also affects the ruby/setup-ruby actions. I consider that a bug in the previous implementation.

Copy link
Member Author

@jhoblitt jhoblitt Sep 16, 2024

Choose a reason for hiding this comment

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

It feels kind of like a single source of truth violation to set a value in the release workflow which might conflict with the module's default. I agree that if the puppet gem version is to be explicitly declared in this workflow that it needs to be done prior to the bundle being installed.

The other position one could take is that modulesync_config is tightly coupled to this repo and changes to the Gemfile template require a new major version branch in this repo.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but then it's duplicating info. It was as a workaround when Puppet 8 had issues

Copy link
Member Author

Choose a reason for hiding this comment

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

My preference is [obviously] that we don't declare the gem version in this workflow.

Note that I am unable to merge in this repo.

@ekohl ekohl merged commit 7d06327 into voxpupuli:v3 Sep 16, 2024
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