Skip to content

Commit

Permalink
fix(generate-registry): fix a bug that unused replacements are added (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke authored Dec 5, 2024
1 parent b56def9 commit fa8feef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/asset/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ func normalizeOverridesByReplacements(pkgInfo *registry.PackageInfo) (map[string
if override.Replacements == nil {
override.Replacements = map[string]string{}
}
override.Replacements[k] = k
if !((override.GOOS == osWindows && k == "arm64" && pkgInfo.WindowsARMEmulation) || (override.GOOS == osDarwin && k == "arm64" && pkgInfo.Rosetta2)) {
// https://github.com/aquaproj/aqua/issues/3336
override.Replacements[k] = k
}
}
}
}
Expand Down

0 comments on commit fa8feef

Please sign in to comment.