-
Notifications
You must be signed in to change notification settings - Fork 14
chore: Fix Gemfile versions to avoid Gemfile.lock updates #1047
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
Open
facumenzella
wants to merge
1
commit into
main
Choose a base branch
from
chore/fix-gemfile
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
gem 'fastlane', '2.226.0' | ||
|
||
eval_gemfile("fastlane/Pluginfile") | ||
|
||
gem "cocoapods", "~> 1.16" | ||
gem 'danger' | ||
gem 'rest-client' | ||
gem "lefthook", "~> 1.10" | ||
gem 'danger', '9.5.1' | ||
gem 'rest-client', '2.1.0' | ||
gem "lefthook", "1.10.10" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hmm I actually think we are leaving these with the version unspecified so we can get auto-updates from dependabot. Since they are only related to CI, it's mostly ok to get auto-updates... Are you getting any issues with the updates?
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.
Well, I am used to fixing versions in any Gemfile. I tried running a fastlane command locally, and ended up with an updated lock file.
Does this prevent updates? I am used to dependabot opening PRs whenever there's an update. I think we might just need to add a few more lines to
dependabot.yml
That keeps track of any change, and we can control what we update and when we update. Great to avoid unexpected broken release trains.
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.
Hmm strange... in general, the lock file should already specify the dependency versions used (part of the reason we are checking it in the repo), so it shouldn't update dependencies automatically... What dependecies were updated?
I totally agree about locking dependencies that are used in our main SDKs, but considering these are mostly for automations and we have the lock files, I think it's better to try to get auto-updates... I believe dependabot only updates dependencies within the constraints specified in the
Gemfile
? I might be wrong but I would consider it an issue if it bumped dependencies to next majors which might not be compatible (I could actually see an argument to lock our dependencies to the current major instead, so dependabot doesn't try to auto-update beyond that). Wdyt?