github aquaproj/aqua v2.28.0

latest releases: v2.37.2, v2.37.1, v2.37.0...
6 months ago

Pull Requests | Issues | v2.27.4...v2.28.0

Features

#2609 #2730 #2632 Support getting a package version from go directive in go.mod or go.work

From Go 1.21, the version of Go is decided by go directive in go.mod or go.work.

https://go.dev/doc/toolchain

e.g.

module github.com/aquaproj/aqua/v2

go 1.22.3

This can cause an issue that the version of Go may be different from the version defined in aqua.yaml.
And we need to define go version in two places.

To solve the issue, this pull request enables aqua to get the version of go from go directive in go.mod or go.work.
You can specify the path to go.mod or go.work by a field go_version_file.

e.g.

packages:
- name: golang/go
  go_version_file: go.mod

Then you can define go version only in go.mod or go.work.

Caution

The version of Go must be a semver x.y.z.
You can't omit a patch version.

#2880 Ignore invalid packages and continue working

When reading aqua.yaml, aqua ignores invalid packages and continues working.
This improves the robustness.

Don't miss a new aqua release

NewReleases is sending notifications on new releases.