Comments (10)
I had the same error. It looks like the repo just changed the default branch to main
instead of master
. I'm not a git expert, but managed to fix it by manually checking out main
locally and changing HEAD
.
(some of these commands may be unnecessary)
cd /usr/local/Homebrew/Library/Taps/homebrew-ffmpeg/homebrew-ffmpeg
git fetch
git checkout main
git remote prune origin
git branch -D master
Then replacing "master" with "main" in .git/refs/remotes/origin/HEAD
which is probably not the best idea, but it worked.
from homebrew-ffmpeg.
Thanks for reporting this issue. I'm surprised that they'd do this to existing repos. This is bound to break much more stuff.
I'm inclined to rename it back to master just to prevent further issues. But then again this should be fixed in brew itself, no?
from homebrew-ffmpeg.
A workaround is suggested here:
brew untap -f homebrew-ffmpeg/ffmpeg
brew tap homebrew-ffmpeg/ffmpeg
from homebrew-ffmpeg.
As a quick fix, I've renamed main
back to master
. I do not want to force our users to manually fix something that brew
apparently cannot handle yet.
If this issue persists please reopen.
from homebrew-ffmpeg.
@slhck master
is considered a racist term. I guess the recommended fix is:
cd $(brew --repo homebrew-ffmpeg/ffmpeg)
git branch -m master main
git fetch origin
git branch -u origin/main main
Yet, of course, I agree with renaming back!
from homebrew-ffmpeg.
I am aware of the possible/recommended fix, but that seems like a complicated workaround.
I would like to avoid going into the discussion behind the naming of the branch; that ship has sailed and there are other opinions, too. My personal opinion does not matter and should not matter (white cis-male speaking here), but what I can observe is that this action will lead to unforeseen behavior that will ultimately confuse end users.
I have no issue with going forward with a different default name (like for git
or new GitHub projects), but switching the branch on existing projects is – as demonstrated by this issue – not a good solution.
Let's wait until brew
or git
can handle this transparently, then we can of course rename the branch.
from homebrew-ffmpeg.
I am aware of the possible/recommended fix, but that seems like a complicated workaround.
Indeed! I fully agree with you.
from homebrew-ffmpeg.
Ah, i see. Thank you for explaining! Its working now, though I should have tried the untap, I was thinking of it, but then was not sure. Thank you all for the help! :)
from homebrew-ffmpeg.
@retokromer Just to make sure, did you change the branch name or was it done automatically?
from homebrew-ffmpeg.
brew tap --repair
should fix that, andbrew update
should detect the rename and instruct a user to runbrew tap --repair
.
See Homebrew/brew#10424 (comment)
from homebrew-ffmpeg.
Related Issues (20)
- add libzbvi to the default options in Homebrew formula from your repo HOT 9
- Please enable the ffplay building option, as the official brew formula does HOT 4
- Possible formula fixes/changes HOT 2
- Can't upgrade to 5.1 HOT 10
- Unknown decoder 'libx265' HOT 1
- FFmpeg 6.0 HOT 4
- Additional codecs don't seem to be included with installation HOT 1
- "unpaper" won't run without ffmpeg 5.x HOT 9
- Can you support installing older version of ffmpeg (e.g. ffmpeg@4) with the option --with-fdk-aac ? HOT 1
- Add `libplacebo` as a supported (optional) library HOT 11
- Install with a different name HOT 7
- Apple Silicon support in homebrew HOT 4
- Patch failure for libavcodec when re-installing ffmpeg HEAD HOT 7
- libavdevice build error (Mac M1 Silicon) HOT 24
- libvidstab error, failed on the 2nd pass, "Cannot parse localmotion" HOT 3
- Test optional installations in CI pipeline
- Error installing with`VkVideoDecodeAV1SessionParametersCreateInfoMESA` HOT 10
- ERROR: libflite not found HOT 32
- tap comparison HOT 1
- Build error relating to drm.h not existing during install HOT 3
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 homebrew-ffmpeg.