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

Update Rakefile gem detection method #518

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

nabertrand
Copy link
Contributor

Bundler.rubygems.find_name will find gems in the PDK cache that are not currently included in the bundle, causing rake tasks to fail. Gem.loaded_specs.key? appears to be a better method of determining if a gem is present in the bundle. See #503, #513, and puppetlabs/pdk#1256 for examples of the issue.

@nabertrand nabertrand requested a review from a team as a code owner June 14, 2023 21:50
Copy link
Contributor

@jordanbreen28 jordanbreen28 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this @nabertrand !

@jordanbreen28 jordanbreen28 merged commit 928935d into puppetlabs:main Jun 20, 2023
@nabertrand nabertrand deleted the rake_fix branch June 20, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot load github_changelog_generator/task Cannot load puppet_blacksmith on fresh module
2 participants