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

(#869) Ensure bundle update on convert/update #871

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Mar 11, 2020

Change the upgrade & convert process so that it always ensures the bundle is up to date. Depending on detecting changes to Gemfile is not sufficient as it doesn't detect changes to unlisted dependencies.

Fixes #869

@coveralls
Copy link

coveralls commented Mar 11, 2020

Coverage Status

Coverage decreased (-0.01%) to 91.204% when pulling 17f5359 on rodjek:gh-869 into b2f25a6 on puppetlabs:master.

@rodjek rodjek force-pushed the gh-869 branch 2 times, most recently from 17f5359 to c56f07d Compare March 12, 2020 03:00
@rodjek rodjek marked this pull request as ready for review March 12, 2020 03:32
@rodjek rodjek requested a review from a team as a code owner March 12, 2020 03:32
PDK::Util::Bundler.ensure_bundle!
end
require 'pdk/util/bundler'
PDK::Util::Bundler.ensure_bundle!
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a user prompt?

Would you like to update your bundle?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I don't think so. If it doesn't update, then it'll just happen automatically when they run the next PDK command.

Copy link
Contributor

Choose a reason for hiding this comment

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

Only usecase I can think of is bundle taking FOREVER (looking at you Windows) and wanting to stop that for tools like pdksync. But I'm more than happy to add that later if needs be.

@glennsarti
Copy link
Contributor

Could probably copy the PR comment into the commit message too.

Change the update & convert process so that it always ensures the bundle
is up to date. Depending on detecting changes to `Gemfile` is not
sufficient as it doesn't detect changes to unlisted dependencies.
Copy link
Contributor

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

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

Pending a green CI

@rodjek rodjek merged commit 9fd0f37 into puppetlabs:master Mar 12, 2020
@rodjek rodjek deleted the gh-869 branch March 12, 2020 04:17
@scotje scotje added the bug label May 12, 2020
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.

GemNotFound error for public_suffix-3.1.1 when using --add-tests
4 participants