github aquaproj/aqua v1.3.0-0

latest releases: v2.37.2, v2.37.1, v2.37.0...
pre-release2 years ago

Pull Requests | Issues | v1.2.0...v1.3.0-0

Feature

#607 #618 Support overriding some registry configuration on the specific GOOS and GOARCH

The attribute overrides has been added in Registry Configuration. https://aquaproj.github.io/docs/reference/registry-config

You can override the following attributes on the specific GOOS and GOARCH.

  • replacements
  • format
  • asset
  • url
  • files

e.g. On Linux ARM64, Arch becomes aarch64.

  overrides:
  - goos: linux
    replacements:
      arm64: aarch64

In case of replacements, maps are merged.

Either goos or goarch is required.

e.g.

  asset: arkade
  overrides:
  - goos: linux
    goarch: arm64
    asset: 'arkade-{{.Arch}}'
  - goos: darwin
    goarch: amd64
    asset: 'arkade-darwin'
  - goos: darwin 
    asset: 'arkade-darwin-{{.Arch}}'

Even if multiple elements are matched, only first element is applied.
For example, Darwin AMD64 matches with second element but the second element isn't applied beause the first element is matched.

  - goos: darwin
    goarch: amd64
    asset: 'arkade-darwin'
  - goos: darwin 
    asset: 'arkade-darwin-{{.Arch}}'

Why is this feature needed?

To make asset, files, and url configuration simple.
Using overrides you can replace if conditions in template strings.

Others

#614 #616 Refactor aqua by separating Go packages in pkg drastically.

Don't miss a new aqua release

NewReleases is sending notifications on new releases.