Comments (6)
It will be important to ensure that brew update, brew update-reset and brew test-bot all behave as expected.
To confirm, "behave as expected" here means that e.g. brew update
will seamlessly move the tap branch from master
-> main
right? if I recall correctly last time I tried this it instead errored and asked you to run brew tap --repair
, which seems like something brew could handle for you.
from brew.
Ideally yeah. And if any fixes are required, it may mean having to keep a copy of master
around indefinitely as an intermediate update step.
If it doesn't work well, a local symbolic-ref might be an alternative idea.
from brew.
To confirm, "behave as expected" here means that e.g.
brew update
will seamlessly move the tap branch frommaster
->main
right?
Yes.
And if any fixes are required, it may mean having to keep a copy of
master
around indefinitely as an intermediate update step.
Ideally we don't want to do this but agreed it's worth doing if needed (at least on Homebrew/brew).
from brew.
In the past, third party taps handled this with opoo
but a silent method for renaming the main (or any) branch which doesn't require keeping the old branch around would be welcome.
from brew.
Noting the "help wanted" tag, I'm interested in working on this, but I'm not clear what the action item is, or at least not what work there is that a non-maintainer could do (i.e. I clearly won't be renaming your repos on GitHub).
I tried renaming the main branch on a personal tap: brew update
detects the rename, and recommends running brew tap --repair
, which in turn works perfectly for correcting the refs in the tap.
Is the next step just adding logic to brew update
to run brew tap --repair
(or the equivalent ruby command) automatically when a branch rename is detected?
edit: I guess I should say that tap --repair
works almost perfectly. After the rename there is still a ref left behind to remotes/origin/oldname
, which git remote prune origin
fixes.
from brew.
Is the next step just adding logic to
brew update
to runbrew tap --repair
(or the equivalent ruby command) automatically when a branch rename is detected?
Thanks for asking @rrotter! Yes, I think so. brew update
should be able to handle these changes and run the relevant commands automatically for users with no intervention (although perhaps an ohai
notifying them of the default branch change.
When you've verified this with some test personal taps: we can start moving some of the lesser used Homebrew official taps over.
from brew.
Related Issues (20)
- `brew install` call `gh attestation verify` Disrespect `XDG_CACHE_HOME` HOT 3
- Fix failing tests and write other tests as well HOT 1
- Suggest to change the way to read file in export_homebrew_env_file HOT 4
- Add a more customizable ENV file loading process HOT 2
- Download does not start immediately, a lot of network traffic (file is downloaded twice?) HOT 5
- macos sequoia 15.1 : We do not provide support for this pre-release version. HOT 4
- `brew upgrade -s` does not build from source or error out HOT 7
- [Intentional or bug?] v4.3.19 `brew list` now outputs single column lists HOT 3
- MariaDB fails to start on Debian 12 HOT 3
- Document cryptographic signature usage for authenticity HOT 2
- Forbid using some formulas provided by macOS HOT 7
- Docker images have expired key for github cli packages HOT 9
- update-python-resources munges`--extra-packages` if it's a URL HOT 2
- Tracking Issue: Concurrent Downloads HOT 6
- brew update doesn't show outdated formulae on second run HOT 3
- `update-python-resources` should support non-PyPI indexes HOT 11
- Throttle does not work for llama.cpp HOT 2
- Support specifying replacement formulae in `deprecate!` or `disable!` calls HOT 1
- Brew appears to be broken HOT 3
- shellenv.sh: Failure when user cannot write "${HOMEBREW_PATHS_FILE}" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brew.