Skip to content

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.
)

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