Skip to content

Add osx bazel installer tool#14

Open
finncarlsvi wants to merge 1 commit intomainfrom
finn/bazel_osx
Open

Add osx bazel installer tool#14
finncarlsvi wants to merge 1 commit intomainfrom
finn/bazel_osx

Conversation

@finncarlsvi
Copy link
Member

Tested on OSX arm64, not amd64. Also renamed original tool that was Debian linux only

@finncarlsvi finncarlsvi added the enhancement New feature or request label Apr 12, 2025
@finncarlsvi finncarlsvi requested a review from meetmrhung April 12, 2025 13:41
@finncarlsvi finncarlsvi self-assigned this Apr 12, 2025
Copy link
Contributor

@curtismuntz curtismuntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this is the exact same script. Why not just throw arch / os logic inside the other script to help reduce constants / version drift between these?

At this stage of the project, supporting another OS may be feasible, but it's not a trivial thing in the long run. At the bare minimum, you should expand the CI to perform OSX builds so we know when PRs break either build.

Comment on lines +12 to +13
if [ $(arch) != "arm64" ]; then
wget -O /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/$BAZELISK_VERSION/bazelisk-darwin-arm64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic here seems reversed.

if [ $(arch) != "arm64" ]; then
wget -O /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/$BAZELISK_VERSION/bazelisk-darwin-arm64
elif [ $(arch) != "x86_64" ]; then
wget -O /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/$BAZELISK_VERSION/bazelisk-darwin-amd64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does osx come shipped with wget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants