github aquaproj/aqua v0.8.2

latest releases: v2.27.3, v2.27.2, v2.27.1...
2 years ago

Milestone
v0.8.1...v0.8.2

Feature

#442 #444 Add the field rosetta2 to support Rosetta 2 easily

⚠️ This configuration is used in not aqua.yaml but registry.yaml.

https://aquaproj.github.io/docs/reference/registry-config/#rosetta2

If a package isn't built for apple silicon (i.e. GOOS=darwin, GOARCH=arm64), you have to install the package built for amd64 (i.e. GOOS=darwin, GOARCH=amd64).
With the field rosetta2, you don't have to write if condition to support such a case.
rosetta2 must be boolean. By default, rosetta2 is false.

If rosetta2 is true and GOOS is darwin and GOARCH is arm64, the template variable Arch is interpreted as GOARCH=amd64.

AS IS

asset: 'argo-{{.OS}}-{{if eq .GOOS "darwin"}}amd64{{else}}{{.Arch}}{{end}}.gz'

TO BE

rosetta2: true
asset: 'argo-{{.OS}}-{{.Arch}}.gz'

Don't miss a new aqua release

NewReleases is sending notifications on new releases.