Skip to content

v2.28.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 May 01:11
· 36 commits to main since this release
v2.28.0
ecd9e70

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.