brew bottle creates bottles with incorrect filenames #4541
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@Homebrew/brew, ideas? |
Beta Was this translation helpful? Give feedback.
-
This is intentional. It's a weird quirk that someone can probably write the history of (it goes back to before I even was a maintainer), but backwards compatibility will appear somewhere in that story. It's difficult to change now without breaking existing workflows. Note in the JSON you have: "filename": "hello-2.12_98.arm64_ventura.bottle.1.tar.gz",
"local_filename": "hello--2.12_98.arm64_ventura.bottle.1.tar.gz",
It is the responsibility of the uploader to select the correct remote filename on your server. For HTTP bottle servers, refer to what brew's GitHub Releases uploader does: https://github.com/Homebrew/brew/blob/33a3f72fbcf11cd9d0749198f768d68e274f2fa1/Library/Homebrew/github_releases.rb#L34-L39. |
Beta Was this translation helpful? Give feedback.
-
@Bo98 How about adding a flag to fix that? |
Beta Was this translation helpful? Give feedback.
This is intentional. It's a weird quirk that someone can probably write the history of (it goes back to before I even was a maintainer), but backwards compatibility will appear somewhere in that story. It's difficult to change now without breaking existing workflows.
Note in the JSON you have:
local_filename
is the filename thatbrew bottle
outputs whilefilename
is the name expected on standard HTTP remotes. That is the reason why there's two entries in the JSON.It is the responsibility of the uploader to select the correct remote filename on y…