Skip to content

fix(uv): Fix sha256 for uv binary for aarch64-apple-darwin#2422

Merged
aignas merged 3 commits intobazel-contrib:mainfrom
schultetwin:fix_uv_sha_hash
Nov 18, 2024
Merged

fix(uv): Fix sha256 for uv binary for aarch64-apple-darwin#2422
aignas merged 3 commits intobazel-contrib:mainfrom
schultetwin:fix_uv_sha_hash

Conversation

@schultetwin
Copy link
Contributor

uv cannot be used on aarch64-apple-darwin computers because the sha256sum is incorrect.

The correct version can be seen here.

Fixes #2411

As can be seen here:
https://github.com/astral-sh/uv/releases/download/0.4.25/uv-aarch64-apple-darwin.tar.gz.sha256,
the current has in rules_python
(35786030f926e3d34d186edc0ea3989698e57755852af9ae4b39da5109abcbfa) is
incorrect and should be bb2ff4348114ef220ca52e44d5086640c4a1a18f797a5f1ab6f8559fc37b1230

Fixes bazel-contrib#2411
Copy link
Collaborator

@aignas aignas left a comment

Choose a reason for hiding this comment

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

Thanks. Just out of curiosity, how are you using the uv tool today?

@aignas aignas added this pull request to the merge queue Nov 18, 2024
Merged via the queue into bazel-contrib:main with commit 0e9f97d Nov 18, 2024
@schultetwin
Copy link
Contributor Author

In the repo I discovered this in, it was being used to build a universal lock file to simplify lock file management, as there were aarch64-darwin, x86_64-darwin and x86_64-linux computers being used in this repo, and I wanted something that would work for all.

I think this would also have been do able using multiple pip_parse and multiple compile_pip_requirements, but uv worked, and was much faster than previously (where that only resolved for one platform).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv tool sha256sum is incorrect for aarch64-apple-darwin

2 participants