github aquaproj/aqua v1.4.0

latest releases: v2.34.0-1, v2.33.0, v2.32.0...
2 years ago

Pull Requests | Issues | v1.3.0...v1.4.0

Features

#643 #644 Support changing GOOS and GOARCH for testing

⚠️ This feature is only for aqua registry's developers.
If you don't write aqua registry, please ignore this.

https://aquaproj.github.io/docs/reference/change-os-arch-for-test

When you develop aqua Registry such as Standard Registry, you have to consider mainly the following platforms.

  • darwin / amd64
  • darwin / arm64
  • linux / amd64
  • linux / arm64

But if you don't have laptops for the above platforms, it is difficult to test the Registry on the platforms.

Furthermore, Standard Registry is tested with GitHub Actions but GitHub Actions doesn't support arm64, so we can't test the Registry on arm64.

To solve the problem, aqua supports changing GOOS and GOARCH for testing the Registry.

By default, aqua gets GOOS and GOARCH from Go's runtime.GOOS and runtime.GOARCH, but you can override them with the environment variables AQUA_GOOS and AQUA_GOARCH.

e.g.

$ AQUA_GOOS=darwin AQUA_GOARCH=arm64 aqua i --test
$ AQUA_GOOS=darwin AQUA_GOARCH=arm64 aqua which gh

Of course, even if you change GOOS and GOARCH you wouldn't be able to execute the tools.
But by running aqua i --test, you can test if tools can be installed properly.

Bug Fixes

#645 #646 #648 Fix the bug that Log Level can't be changed.

This bug affects aqua v1.3.0.

Others

#623 #624 #625 #626 #627 #628 Generate JSON Schema
#647 Update Go from v1.17.7 to v1.18.1

Don't miss a new aqua release

NewReleases is sending notifications on new releases.