Skip to content

Commit

Permalink
Get arch from resolver as well
Browse files Browse the repository at this point in the history
Maybe this got reverted due to a bad rebase? Who knows.

Signed-off-by: Sune Keller <absukl@almbrand.dk>
  • Loading branch information
sirlatrom committed Mar 15, 2021
1 parent 401d9b9 commit f37e996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func FilterAssets(repoName string, as []*Asset) (*FilteredAsset, error) {
for _, os := range resolver.GetOS() {
scores[os] = 10
}
for _, arch := range config.GetArch() {
for _, arch := range resolver.GetArch() {
scores[arch] = 5
}
scoreKeys := []string{}
Expand Down Expand Up @@ -162,7 +162,7 @@ func SanitizeName(name, version string) string {
// generate the replacements? IDK.
firstPass := true
for _, osName := range resolver.GetOS() {
for _, archName := range config.GetArch() {
for _, archName := range resolver.GetArch() {
replacements = append(replacements, "_"+osName+archName, "")
replacements = append(replacements, "-"+osName+archName, "")
replacements = append(replacements, "."+osName+archName, "")
Expand Down

0 comments on commit f37e996

Please sign in to comment.