Skip to content

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

facumenzella
Copy link
Contributor

This PR fixes the Gemfile to avoid unnecessary .lock updates

@facumenzella facumenzella added enhancement New feature or request pr:other labels Feb 19, 2025
gem "lefthook", "~> 1.10"
gem 'danger', '9.5.1'
gem 'rest-client', '2.1.0'
gem "lefthook", "1.10.10"
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr:other
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants