-
-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support linux arm64 binary tools. #13249
Conversation
Adds the ability to differentiate the architecture, and adds defaults for all binary tools that have an arm64 release, or that I was able to build on that architecture. The only tool that does not currently build on linux arm64 is Hadolint. [ci skip-rust] [ci skip-build-wheels]
@@ -23,18 +23,20 @@ class SuccinctCodeCounter(TemplatedExternalTool): | |||
options_scope = "scc" | |||
help = "The Succinct Code Counter, aka `scc` (https://github.com/boyter/scc)." | |||
|
|||
default_version = "2.12.0" | |||
default_version = "3.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgraded to a version that has arm64 binaries (for MacOS and Linux) in its release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
f"{default_version}|macos_arm64 |b080c3b659f7286e27004aa33759664d91e15ef2498ac709a452445d47e3ac23|1348272", | ||
f"{default_version}|macos_x86_64|b080c3b659f7286e27004aa33759664d91e15ef2498ac709a452445d47e3ac23|1348272", | ||
f"{default_version}|linux_x86_64|64f17152d96d7ec261ad3086ed42d18232fcb65148b44571b564d688269d36c8|1443836", | ||
"v0.7.1|macos_arm64 |b080c3b659f7286e27004aa33759664d91e15ef2498ac709a452445d47e3ac23|1348272", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of the interpolation in favor of hardcoding the version in each string, for the following reasons:
- It actually makes the line shorter and more readable.
default_known_versions
can in principle contain additional versions other thandefault_version
, and this emphasizes that fact.- We don't want casual readers to think that just updating
default_version
is sufficient. This emphasizes that each binary must be updated.
@@ -12,6 +12,7 @@ | |||
|
|||
|
|||
class Platform(Enum): | |||
linux_arm64 = "linux_arm64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified on an arm64 instance that this platform is correctly detected.
Adds the ability to differentiate the architecture, and adds
defaults for all binary tools that have an arm64 release, or that
I was able to build on that architecture.
The only tool that does not currently build on linux arm64 is Hadolint.
[ci skip-rust]
[ci skip-build-wheels]