bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
225 stars 175 forks source link

RFC: rule to produce homebrew bottles #624

Open alexeagle opened 2 years ago

alexeagle commented 2 years ago

A "bottle" is a binary package https://docs.brew.sh/Bottles

Unlike tools like bazelisk, which are built from source on a user's machine when they brew install, bottles allow for things like closed-source binaries to be distributed conveniently to developer's Mac machines.

@aiuto would you accept PRs adding some rules here to produce these?

/cc @cgrindel

aiuto commented 2 years ago

There is the ever present question of should this be in rules_apple or here. The next question is who gets to maintain it. The current maintainers don't have the bandwidth to take on an Apple specific thing. That does not mean no, it just means that maybe it is a contrib section, and perhaps a bzlmod extenstion feature rather than core.

I have to run for the night. Let's pick up next week.

alexeagle commented 2 years ago

I think here makes more sense:

aiuto commented 2 years ago

On Fri, Oct 14, 2022 at 5:48 PM Alex Eagle @.***> wrote:

I think here makes more sense:

  • bottles are just a tar file with a certain structure

Cool. I know little about brew but I'm willing to learn.

  • there is a nascent Linux brew as well

Message ID: @.***>