-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
"Failed to import" error #917
Comments
Have you tried the “magic one-liner”? That error should not be appearing anymore, are you using the latest version of homebrew-cask ( |
Looks like the one-liner fixed it. Thanks! |
Still didn't fix it for me. Neither did this one: It's worth noting that every time I run my update, I have to make a merge commit for some reason.
|
That means one of your repos cannot be fast-forwarded, this would be either Homebrew or the Cask tap (or another tap). To fix it, you have to first identify which repo it is, then check you are on the right branch, then fetch the upstream master branch into a new-master one, switch to it, delete your local master, and rename new-master to master. Or something else equivalent, there's several ways to skin an octocat. |
So do you think that has to do with why I'm getting this same repeated error? |
Also, I think the issue is that the usr/local/Library/Taps/phinze-cask/Casks and the usr/local/Library/Formula folders have a lot of overlap, with many being @ symlinks in the Casks dir.
I dunno. |
Have you tried running |
I had run it on the top 2, but I just dug a little deeper.
Aha.
etc. |
Well, homebrew-versions isn't it.
Back to the drawing board. |
I only found one other repo that wasn't in sync, but still the error persists.
Then I tried the following script #816 (comment), which finally fixed it (cross-referenced from homebrew-cask). |
I fixed this for myself, but I don't know what I did to get into this state. Here is what I did and I hope this will help you and others. I went to /usr/local/Library/phinze-cask
I did git status
and it showed a modified file, brew-cask.rb I stashed it (to reset to head) with
then I did
and
No more errors, everything was updated. |
Not sure if this is related, but I just got: $ brew doctor
Error: Failed to import: cask
No available formula for cask
Your system is ready to brew. Tried 'the magic one-liner': That did: $ brew update && brew upgrade brew-cask
Already up-to-date.
==> Upgrading 1 outdated package, with result:
brew-cask 0.28.0
==> Upgrading brew-cask
==> Cloning https://github.com/phinze/homebrew-cask.git
Updating /Library/Caches/Homebrew/brew-cask--git
==> Checking out tag v0.28.0
/usr/local/Cellar/brew-cask/0.28.0: 1159 files, 4.6M, built in 6 seconds But doing $ brew doctor
Error: Failed to import: cask
No available formula for cask
Your system is ready to brew. Any ideas what's going on here please? |
$ brew doctor
The text was updated successfully, but these errors were encountered: