-
-
Notifications
You must be signed in to change notification settings - Fork 28
feat: match artifacts with "arm" in package name on macOS ARM64 #132
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
feat: match artifacts with "arm" in package name on macOS ARM64 #132
Conversation
| return Ok(matches.remove(0)); | ||
| } | ||
|
|
||
| let filtered = self.maybe_filter_for_64_bit_arch(matches); |
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.
Without changing the filter order, "arm" will be excluded because it doesn't contain the string "64".
|
Hi, thanks for your PR! I'm pretty finicky about my projects (see this blog post for details), so I rarely merge a PR as-is. For larger PRs, I typically use the GitHub PR review process and provide feedback directly on the code, asking you to make some changes. For smaller PRs, where I just want to tweak some small stuff (like doc wording, comments, code formatting, etc.), I don't do a PR review. Whether or not I do a review, there are two options for merging the PR:
Please let me know which approach you'd prefer. If I don't hear from you before I get around to working on this PR I'll go with option 1. Thanks again for your contribution! |
|
I'd prefer option 2. Thank you. |
…x86-64" Previously, we would pick the x86-64 artifact because we looked for 64-bit names, but on macOS ARM we should prefer plain "arm" over "x86-64".
ccdb32f to
dd0fd09
Compare
autarch
left a comment
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 made a few tweaks and I will merge it once CI passes.
|
Thanks for this! It'll be in the next release. |
Fixes houseabsolute#137 The picker logic for macos arm was reordered in houseabsolute#132 to return on a match, but this was done before checking against the `--matching` filter. Move up the check against `--matching` so it's not ignored.
Fixes houseabsolute#137 The picker logic for macos arm was reordered in houseabsolute#132 to return on a match, but this was done before checking against the `--matching` filter. Instead, filter matches against `--matching` before architecture matching.
The picker logic for macos arm was reordered in houseabsolute#132 to return on a match, but this was done before checking against the `--matching` filter. This fixes the picker code so that it filters assets against `--matching` before architecture matching.
The picker logic for macos arm was reordered in houseabsolute#132 to return on a match, but this was done before checking against the `--matching` filter. This fixes the picker code so that it filters assets against `--matching` before architecture matching.
The picker logic for macos arm was reordered in #132 to return on a match, but this was done before checking against the `--matching` filter. This fixes the picker code so that it filters assets against `--matching` before architecture matching.
This PR improves the asset selection logic for macOS Apple Silicon (ARM64) systems to better handle asset names that contain "arm" (without "64" suffix) such as "dcm-macos-arm-release.zip".
I only modified
macos_aarch64_re()and didn't changeaarch64_re()because there's a risk of incorrectly selecting 32-bit binaries on non-macOS ARM64 environments.Since all ARM environments on macOS are 64-bit, I believe this change will work correctly.
Note: I have contributed to this repository in the past. I allow edits to this branch and commits.