Skip to content
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

Merged
merged 2 commits into from
Oct 14, 2021
Merged

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Oct 13, 2021

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]

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"
Copy link
Sponsor Contributor Author

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.

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a 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",
Copy link
Sponsor Contributor Author

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:

  1. It actually makes the line shorter and more readable.
  2. default_known_versions can in principle contain additional versions other than default_version, and this emphasizes that fact.
  3. 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"
Copy link
Sponsor Contributor Author

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.

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@benjyw benjyw merged commit 39d0a77 into pantsbuild:main Oct 14, 2021
@benjyw benjyw deleted the linux_arm64_binaries branch October 14, 2021 21:34
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.

3 participants