Closed ans87gh closed 4 years ago
Warning: You have installed Bitdefender. The "Traffic Scan" option interferes with
Homebrew's ability to download packages. See:
https://github.com/Homebrew/brew/issues/5558
This may be the problem, but let's check -- go into your casks directory by running cd "$(brew --repository)"/Library/Taps/homebrew/homebrew-cask
, then run the command:
git remote -v
and please post the output.
ans87gh git@github.com:ans87gh/homebrew-cask.git (fetch) ans87gh git@github.com:ans87gh/homebrew-cask.git (push) origin https://github.com/Homebrew/homebrew-cask (fetch) origin https://github.com/Homebrew/homebrew-cask (push)
regarding Bitdefender, I haven't had an issue in the past pushing casks
In your casks directory, run the command:
git remote set-url ans87gh https://github.com/ans87gh/homebrew-cask
and then please post the output of git remote -v
again.
ans87gh https://github.com/ans87gh/homebrew-cask (fetch) ans87gh https://github.com/ans87gh/homebrew-cask (push) origin https://github.com/Homebrew/homebrew-cask (fetch) origin https://github.com/Homebrew/homebrew-cask (push)
Ok, looks good -- now try pushing again.
will do - thanks! I'll keep you posted!
Worked until the END:
! [remote rejected] usenapp-branch -> usenapp-branch (refusing to allow an OAuth App to create or update workflow .github/workflows/automerge.yml
without workflow
scope)
error: failed to push some refs to 'https://github.com/ans87gh/homebrew-cask'
???
Ok, you may need to delete your branch, update your fork and re-create your new cask.
In your casks directory, checkout the master branch by running git checkout master
, then please post the output of git branch -a
.
I thought I was starting over; here is the output:
icollections-branch
Are you still using any of these branches?
screenfocus-branch
sessionrestore-branch
slimhud-branch
usenapp-branch
windocd-branch
No. I was at one point when making the casks. I didn’t realize there were remnants.
Ok, run:
git branch -D screenfocus-branch sessionrestore-branch slimhud-branch usenapp-branch windocd-branch
then run:
git remote prune ans87gh
and then run:
git remote prune origin
then post the output of git branch -a
again.
didn't change?
icollections-branch
correction - I see it now
Your remotes/ans87gh
branches did not change?
no they did not
Ok, let's try updating your fork -- run:
git checkout master; git pull --rebase origin; git push ans87gh master
another error at the end:
To https://github.com/ans87gh/homebrew-cask
! [remote rejected] master -> master (refusing to allow an OAuth App to create or update workflow .github/workflows/automerge.yml
without workflow
scope)
error: failed to push some refs to 'https://github.com/ans87gh/homebrew-cask'
Try again with --force
:
git checkout master; git pull --rebase origin; git push --force ans87gh master
same outcome
Very odd -- when you run git config --list
, are your user.email=
and user.name=
set correctly to those you use for GitHub?
DON'T post the output of git config --list
, it may contain sensitive information.
You may need to create a new personal access token.
yes they are
If you go to https://github.com/settings/tokens
, do you have a personal access token listed for hub
?
that worked! Thanks miccal!
General troubleshooting steps
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
created rb for new cask
usenapp.rb
cask "usenapp" do version "0.80.5" sha256 "55e9da1c470b7de7972128315fdaa7fdcc8e14b8805289866b76b809983090fc"
url "https://www.usenapp.com/download/Usenapp-0.80.5.dmg" name "Usenapp" desc "Newsreader / usenet client for Mac OSX" homepage "https://www.usenapp.com/"
app "Usenapp.app"
zap trash: [ '~/Library/Application Support/Usenapp', '~/Library/Caches/com.xoroxsoft.usenapp', '~/Library/Preferences/com.xoroxsoft.usenapp.plist', '~/Library/Saved Application State/com.xoroxsoft.usenapp.savedState', ] end
went through systematically completing every step outlined on https://github.com/Homebrew/homebrew-cask/blob/master/doc/development/adding_a_cask.md
unable to push my branch usenapp-branch. Returning:
kex_exchange_identification: write: Broken pipe fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Changed my
Command that failed
Output of command with
--force --verbose --debug
Output of
brew cask doctor
Output of
brew tap