parse_basename unable to parse URL basename? #5123
Unanswered
h0tbird
asked this question in
Writing Formulae/Casks
Replies: 2 comments
-
Can I see what the output was before and after? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Going to need a lot more info here as it works fine for me: class Shfmttest < Formula
desc "test"
homepage "https://github.com/mvdan/sh"
url "https://github.com/mvdan/sh/releases/download/v3.8.0/shfmt_v3.8.0_darwin_amd64"
sha256 "c0218b47a0301bb006f49fad85d2c08de23df303472834faf5639d04121320f8"
end $ brew fetch shfmttest
==> Downloading https://github.com/mvdan/sh/releases/download/v3.8.0/shfmt_v3.8.0_darwin_amd64
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/49766020/a3164ff6-f345-40b2-8b8c-24d93ba878fe?X-Amz-
############################################################################################################################################### 100.0%
Downloaded to: /Users/bo/Library/Caches/Homebrew/downloads/8058b317f1e34524b4429131b961a709eed9478df2f681ca5b6c644589a117b3--shfmt_v3.8.0_darwin_amd64 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
In my formula, I had to switch the URL from:
to (add
.tar.gz
):...in order for
brew install
to work. I think parse_basename was not able to get thebasename
.Maybe related to Homebrew/brew#15258?
cc: @Bo98, @reitermarkus, @MikeMcQuaid, @apainintheneck
Beta Was this translation helpful? Give feedback.
All reactions