-
Notifications
You must be signed in to change notification settings - Fork 23
fix: make sure 'bundle install' is always called during updates #420
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ def self.with_prerelease(*value) | |
|
|
||
| # (see Manager#call_while_empty?) | ||
| def call_while_empty? | ||
| !workspace_configuration_gemfiles.empty? | ||
| true | ||
| end | ||
|
|
||
| # (see Manager#strict?) | ||
|
|
@@ -550,13 +550,13 @@ def install(gems, filter_uptodate_packages: false, install_only: false) | |
| File.read(gemfile_path) != gemfile_contents) | ||
| if updated | ||
| Ops.atomic_write(gemfile_path) do |io| | ||
| io.puts gemfile_contents | ||
| io.write gemfile_contents | ||
| end | ||
| end | ||
|
|
||
| options = [] | ||
| binstubs_path = File.join(root_dir, "bin") | ||
| if updated || !install_only || !File.file?("#{gemfile_path}.lock") | ||
| if updated || !File.file?("#{gemfile_path}.lock") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand this one "install_only" means "do not update". We are already checking if the gemfile got updated and run unconditionally, I don't understand why !install_only was removed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... I'm gonna have to go back to it. It's been a while (should have put a comment) |
||
| self.class.run_bundler_install(ws, gemfile_path, *options, | ||
| binstubs: binstubs_path) | ||
| end | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. It feels like this is duplicated with the call_while_empty? flag. I'm guessing it was two attempts at fixing the same issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanna remove it or keep it for backwards compatibility (although this is a "very" private API...)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with removing it.