Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Remove Brewfile.lock.json generation. #1509

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Remove Brewfile.lock.json generation. #1509

merged 1 commit into from
Nov 27, 2024

Conversation

MikeMcQuaid
Copy link
Member

This was originally added to faciliate later functionality from other maintainers that never materialized.

I've never heard anyone say this was useful and a lot of people have complained that it's useless or annoying.

I won't merge this immediately to give people a change to comment.

This was originally added to faciliate later functionality from other
maintainers that never materialized.

I've never heard anyone say this was useful and a lot of people have
complained that it's useless or annoying.
Copy link
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

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

Makes sense. I've also never understood the purpose, so your explanation makes sense.

@colindean
Copy link
Collaborator

I have no objections. I've got a line for Brewfile.lock.json in every .gitignore in a repo with a Brewfile.

@jacobbednarz
Copy link
Contributor

works for me!

@p-linnane p-linnane merged commit 1419e23 into master Nov 27, 2024
5 checks passed
@p-linnane p-linnane deleted the remove_lockfile branch November 27, 2024 00:48
@Brett-Best
Copy link

I actually found this helpful and had it committed to the repository.
It had a bunch of information about the environment in a last known working state which made finding where things broke a bit easier to debug.

It's not a big deal but perhaps it could default to not generating the lockfile and make it opt in only.

Okeanos added a commit to Okeanos/dotfiles that referenced this pull request Dec 7, 2024
minusfive added a commit to minusfive/dotfiles that referenced this pull request Dec 13, 2024
Lock file generation feature was removed from homebrew-bundle
a couple of weeks ago:

Homebrew/homebrew-bundle#1509
@georgettica
Copy link

I also used it and was surprised it was removed. I used it to un-quarantine casks after each release.

@Xe
Copy link

Xe commented Dec 22, 2024

My CI relied on this for caching homebrew packages so they didn't have to be downloaded twice (this saves up to 10 minutes per CI run). Is there a way to re-enable spacebar heating?

ekweible added a commit to ekweible/dotfiles that referenced this pull request Dec 23, 2024
@MikeMcQuaid
Copy link
Member Author

Thanks for chiming in @georgettica @Xe! Can you elaborate on how you used/consumed this? Thanks!

@georgettica
Copy link

As I didn't have a automated way to test what packages have changed on my machine, I added this file to my git and for each cask that was updated I force the PKG to be un-quarantined, this reduce the "are you sure this package is secure" warning

@jasonkarns
Copy link
Contributor

jasonkarns commented Mar 11, 2025

Was there a deprecation period for the --no-lock option? I have loads of scripts and applications whose bootstrap process uses brew bundle --no-lock that are all failing now with Error: invalid option: --no-lock.

Considering that --no-lock option is now redundant; it would have been nice to get deprecation warnings to prepare scripts and tooling for removal before dropping the option.

(I'm assuming there weren't any deprecation warnings, because I run my tooling cleanup script almost weekly and never noticed any warning to this effect. Unless I missed it?)

chrisbilodeau added a commit to chrisbilodeau/dotfiles that referenced this pull request Mar 12, 2025
* Hardcode brew location
* Remove brew bundle `--no-lock` option
(Homebrew/homebrew-bundle#1509)
andys8 added a commit to andys8/dotfiles that referenced this pull request Mar 14, 2025
@Xe
Copy link

Xe commented Mar 18, 2025

Thanks for chiming in @Xe! Can you elaborate on how you used/consumed this? Thanks!

GitHub actions. I wanted to avoid installing packages needlessly (this massively speeds up CI, you have no idea, it can save two digits of minutes per run) so I cache the /home/linuxbrew folder in GitHub Actions caches. Brewfile.lock.json changing means that the cache can be invalidated.

@MikeMcQuaid
Copy link
Member Author

@Xe Thanks! Could you open an issue for that functionality (GitHub Actions caching) as I think it'd be valuable and may make more sense in Homebrew/brew.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants