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

Move gem group setting to separate, cacheable file #15952

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Sep 4, 2023

Previously we stored installed gem groups in the Homebrew settings file (gitconfig). This made sense, but this PR changes that to use a separate file instead.

The benefit of doing so is so that the file can be cached in GitHub Actions, so the same cache can be used across multiple CI workflows even if the groups used in each are different. Otherwise, the previous behaviour would be to just uninstall all the groups not requested in that workflow.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good so far, thanks @Bo98!

Library/Homebrew/dev-cmd/install-bundler-gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@apainintheneck apainintheneck left a comment

Choose a reason for hiding this comment

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

I tested it locally and everything worked as expected.

Library/Homebrew/dev-cmd/install-bundler-gems.rb Outdated Show resolved Hide resolved
@Bo98 Bo98 force-pushed the gemgroup-file branch 2 times, most recently from 2d60207 to adc3157 Compare September 13, 2023 12:50
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Outdated Show resolved Hide resolved
Library/Homebrew/utils/gems.rb Show resolved Hide resolved
@MikeMcQuaid
Copy link
Member

Thanks again @Bo98!

@MikeMcQuaid MikeMcQuaid merged commit b415a0d into Homebrew:master Sep 13, 2023
25 checks passed
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants