Closed woneiros closed 10 months ago
Have you tried passing the array through to headers
instead?
Thank you for your reponse @bevanjkay
Yes, in that case I get the following error:
❯ brew install --cask cask-anothertest
Error: Cask 'cask-anothertest' definition is invalid: 'url' stanza failed with: unknown keyword: headers
I just created a separate reproducible cask for this. Available here: https://github.com/woneiros/homebrew-cask-anothertest With formula:
cask "cask-anothertest" do
desc "Foobar2"
homepage "https://github.com/tkupek/homebrew-cask-test"
version "v0.0.1"
on_arm do
url "https://api.github.com/repos/tkupek/homebrew-cask-test/releases/assets/134513898",
headers: [
"Accept: application/octet-stream",
]
sha256 "11d08b197f303f638e3663f0f14e0a5fb3587e64b07d4691c63d5d18e90460a0"
app "APK Icon Editor.app"
end
on_intel do
url "https://api.github.com/repos/tkupek/homebrew-cask-test/releases/assets/134513898",
headers: [
"Accept: application/octet-stream",
]
sha256 "11d08b197f303f638e3663f0f14e0a5fb3587e64b07d4691c63d5d18e90460a0"
app "APK Icon Editor.app"
end
end
awesome, it's working now. Thank you @bevanjkay and @Bo98!
Verification
--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
Hi homebrew team, thank you in advance for you time!
We are building our own formulas and casks, and when trying to install a small cask I'm getting a weird cask definition error that says:
Note: This error occurs after I already added the correct tap:
brew tap tkupek/homebrew-cask-test https://github.com/tkupek/homebrew-cask-test.git
We've tried to create a minimal reproducible example, and this cask formula is still giving me the error: You can also see the repo here: https://github.com/tkupek/homebrew-cask-test
The above definition works if we update the header to simply be a string, but in our actual usecase we need to set two headers. This supposedly follows the formula definition docs https://docs.brew.sh/Cask-Cookbook#stanza-url , and it works for a colleague that has the same exact
brew config
Ruby version number. So I'm quite stumped.Command that failed
brew install --cask cask-test
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap