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

Use specific arch and forgo defaults #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpambrun
Copy link
Contributor

@jpambrun jpambrun commented Feb 9, 2023

The default idea doesn't really work as it pick the first assed matching, not the best one. ppc64 and ppc32 would break the heuristic based on ordering.

There may be a better way. Also, not tested..

The default idea doesn't really work as it pick the first assed matching, not the best one. ppc64 and ppc32 would break the heuristic based on ordering.
@@ -6,7 +6,7 @@ import (
)

var (
archRe = regexp.MustCompile(`(arm64|arm|386|amd64|x86_64|aarch64|32|64)`)
Copy link
Owner

Choose a reason for hiding this comment

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

Delete 32 and 64? Maybe you need to rebase?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No no.. this is the proposed change. As it is today, this case for example picks ppc64le for amd64. I imagine it just boils down to order. "32" and "64" are not discriminant enough given the current approach.

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.

2 participants