Skip to content

Commit

Permalink
chore(deps): update dependency aquaproj/aqua to v2.40.0 (main) (#29)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aquaproj/aqua](https://redirect.github.com/aquaproj/aqua) | minor |
`v2.25.2` -> `v2.40.0` |

---

### Release Notes

<details>
<summary>aquaproj/aqua (aquaproj/aqua)</summary>

###
[`v2.40.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.40.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.39.1...v2.40.0-0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.40.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.40.0)
| aquaproj/aqua@v2.39.1...v2.40.0

##### Features

[#&#8203;3363](https://redirect.github.com/aquaproj/aqua/issues/3363)
Support getting package versions from external files

This release enables you to get package versions from external files.
This feature is useful when:

-   Migrate any tool to aqua gradually
-   Support aqua and other tools

This release adds some fields to aqua.yaml's packages.

- version_expr: An
[expr](https://expr-lang.org/docs/language-definition) expression to
read external files
-   version_expr_prefix: A prefix of version

e.g.

```yaml
packages:
- name: hashicorp/terraform
  version_expr: |
    "v" + readFile('.terraform-version')
```

```yaml
  version_expr: |
    readJSON('version.json').version
  version_expr_prefix: cli-
```

```yaml
  version_expr: |
    readYAML('version.yaml').version
```

`version_expr` is evaluated using
[expr](https://expr-lang.org/docs/language-definition).
The following custom functions are available.

-   readFile("file path"): reads a file and returns a file content
- readJSON("file path"): read and unmarshal a JSON file and returns an
object
- readYAML("file path"): read and unmarshal a YAML file and returns an
object

##### ⚠️ Constraint of `version_expr`

Allowing to read external files is potentially risky in terms of
security.
Malicious users can try to read secret files and expose secrets via log
using `version_expr`.
To prevent such a threat, we restrict the evaluation result of
`version_expr`.
It must match with the regular expression
`^v?\d+\.\d+(\.\d+)*[.-]?((alpha|beta|dev|rc)[.-]?)?\d*`.

###
[`v2.39.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.39.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.39.0...v2.39.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.39.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.39.1)
| aquaproj/aqua@v2.39.0...v2.39.1

#### Fixes

[#&#8203;3365](https://redirect.github.com/aquaproj/aqua/issues/3365)
cargo: Normalize the install path of cargo packages

#### Others

[#&#8203;3361](https://redirect.github.com/aquaproj/aqua/issues/3361)
Refactor reading config

###
[`v2.39.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.39.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.38.4...v2.39.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.39.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.39.0)
| aquaproj/aqua@v2.38.4...v2.39.0

#### Features

[#&#8203;3354](https://redirect.github.com/aquaproj/aqua/issues/3354)
policy: add a code comment for YAML Language Servers to a generated file
`aqua-policy.yaml`

```yaml

### yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/policy.json
```

[#&#8203;3352](https://redirect.github.com/aquaproj/aqua/issues/3352)
init: Add a code comment for YAML Language Servers to a generated file
`aqua.yaml`

```yaml

### yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json
```

These code comments are useful when you edit files with editors such as
VSCode.

<img width="980" alt="image"
src="https://github.com/user-attachments/assets/7935b72a-3702-4ea9-b2c9-3663e4c068bf"
/>

<img width="543" alt="image"
src="https://github.com/user-attachments/assets/dcff2fb5-064b-4087-9bd6-374b52cc9321"
/>

###
[`v2.38.4`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.38.4)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.38.3...v2.38.4)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.38.4)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.38.4)
| aquaproj/aqua@v2.38.3...v2.38.4

##### Bug Fixes

[#&#8203;3337](https://redirect.github.com/aquaproj/aqua/issues/3337)
generate-registry: Fix a bug that unused replacements are added

###
[`v2.38.3`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.38.3)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.38.2...v2.38.3)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.38.3)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.38.3)
| aquaproj/aqua@v2.38.2...v2.38.3

##### Bug Fixes

[#&#8203;3325](https://redirect.github.com/aquaproj/aqua/issues/3325)
[#&#8203;3333](https://redirect.github.com/aquaproj/aqua/issues/3333)
Fix a bug that `aqua g -i` removes comments from `packages`

###
[`v2.38.2`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.38.2)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.38.1...v2.38.2)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.38.2)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.38.2)
| aquaproj/aqua@v2.38.1...v2.38.2

##### 🐛 Bug Fixes

[#&#8203;3307](https://redirect.github.com/aquaproj/aqua/issues/3307)
generate-registry: Fix a bug that description isn't formatted

###
[`v2.38.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.38.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.38.0...v2.38.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.38.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.38.1)
| aquaproj/aqua@v2.38.0...v2.38.1

#### Fixes

[#&#8203;3297](https://redirect.github.com/aquaproj/aqua/issues/3297)
completion: Improve the completion settings suggested in `aqua
completion --help`
[@&#8203;akinomyoga](https://redirect.github.com/akinomyoga)

###
[`v2.38.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.38.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.37.2...v2.38.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.38.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.38.0)
| aquaproj/aqua@v2.37.2...v2.38.0

#### Features

[#&#8203;3269](https://redirect.github.com/aquaproj/aqua/issues/3269)
Get available versions from [Go Module Proxy](https://proxy.golang.org/)


https://aquaproj.github.io/docs/reference/registry-config/go-version-path

This release adds the new field `go_version_path` to registries.

e.g.

```yaml
packages:
  - name: _go/sigsum.org/sigsum-go#cmd/sigsum-key
    type: go_install
    path: sigsum.org/sigsum-go/cmd/sigsum-key
    go_version_path: sigsum.org/sigsum-go
```

If this field is set, `aqua g` and `aqua up` commands gets available
versions from [Go Module Proxy](https://proxy.golang.org/).

###
[`v2.37.2`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.37.2)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.37.1...v2.37.2)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.37.2)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.37.2)
| aquaproj/aqua@v2.37.1...v2.37.2

##### Fixes

[#&#8203;3233](https://redirect.github.com/aquaproj/aqua/issues/3233)
which, exec: Search configuration files even if `AQUA_CONFIG` is set

###
[`v2.37.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.37.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.37.0...v2.37.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.37.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.37.1)
| aquaproj/aqua@v2.37.0...v2.37.1

#### Bug Fixes

[#&#8203;3226](https://redirect.github.com/aquaproj/aqua/issues/3226)
[#&#8203;584](https://redirect.github.com/aquaproj/aqua/issues/584) Fix
a bug that newlines in aqua.yaml are removed when updating aqua.yaml by
`aqua g -i` and `aqua up`

This issue came from the bug of goccy/go-yaml.
[https://github.com/goccy/go-yaml/issues/285](https://redirect.github.com/goccy/go-yaml/issues/285)
The issue was solved at goccy/go-yaml 1.13.3.
So we updated goccy/go-yaml to 1.13.3 and solve the issue.

###
[`v2.37.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.37.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.36.2...v2.37.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.37.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.37.0)
| aquaproj/aqua@v2.36.2...v2.37.0

##### Features

[#&#8203;3224](https://redirect.github.com/aquaproj/aqua/issues/3224)
Allow to set command aliases in aqua.yaml

You can now define command aliases in aqua.yaml.
This is useful to use multiple versions of the same package.

e.g.

```yaml
registries:
- type: standard
  ref: v4.246.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: hashicorp/terraform@v1.9.8
- name: hashicorp/terraform
  version: v0.13.7
  command_aliases:
    - command: terraform
      alias: terraform-013

##### no_link: true
```

Then you can run `terraform` (v1.9.8) and `terraform-013` (v0.13.7).

```console
$ terraform version
Terraform v1.9.8
on darwin_arm64

$ terraform-013 version
Terraform v0.13.7

Your version of Terraform is out of date! The latest version
is 1.9.8. You can update by downloading from https://www.terraform.io/downloads.html
```

You can skip creating symbolic links for aliases by `no_link: true`

```yaml
  command_aliases:
    - command: terraform
      alias: terraform-013
      no_link: true
```

You can still run aliases via `aqua exec`.

```sh
aqua exec -- terraform-013 version
```

###
[`v2.36.2`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.36.2)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.36.1...v2.36.2)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.36.2)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.36.2)
| aquaproj/aqua@v2.36.1...v2.36.2

##### Bug Fixes

[#&#8203;3193](https://redirect.github.com/aquaproj/aqua/issues/3193)
[#&#8203;3194](https://redirect.github.com/aquaproj/aqua/issues/3194)
Fix a bug that `vars` are not replaced in `files[].src`

###
[`v2.36.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.36.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.36.0...v2.36.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.36.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.36.1)
| aquaproj/aqua@v2.36.0...v2.36.1

#### Fixes

[#&#8203;3146](https://redirect.github.com/aquaproj/aqua/issues/3146)
generate-registry: Remove `rosetta2` and `windows_arm_emulation` if
`{{.Arch}}` isn't included in `asset`

#### Dependency updates

[#&#8203;3148](https://redirect.github.com/aquaproj/aqua/issues/3148)
Update aqua-proxy to 1.2.8
[#&#8203;3149](https://redirect.github.com/aquaproj/aqua/issues/3149)
Update Go to 1.23.2

###
[`v2.36.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.36.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.35.0...v2.36.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.36.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.36.0)
| aquaproj/aqua@v2.35.0...v2.36.0

##### Features

[#&#8203;3130](https://redirect.github.com/aquaproj/aqua/issues/3130)
[#&#8203;3134](https://redirect.github.com/aquaproj/aqua/issues/3134)
support changing $0 by symlink

Some tools change their behavior by `$0`.

For example, `granted` changes the behavior based on `args[0]`.


https://github.com/common-fate/granted/blob/e8de3ec7d62d543062d8be802b27abb3d8fac429/cmd/granted/main.go#L37-L44

```go
	// Use a single binary to keep keychain ACLs simple, swapping behavior via argv[0]
	var app *cli.App
	switch filepath.Base(os.Args[0]) {
	case "assumego", "assumego.exe", "dassumego", "dassumego.exe":
		app = assume.GetCliApp()
	default:
		app = granted.GetCliApp()
	}
```

This release supports changing $0 by symlink.

```yaml
        files:
          - name: granted
          - name: assumego
            src: granted
            link: assumego # link is the relative path from src to the symlink
```

##### Bug Fixes

[#&#8203;3136](https://redirect.github.com/aquaproj/aqua/issues/3136)
[#&#8203;3137](https://redirect.github.com/aquaproj/aqua/issues/3137)
remove: Handle panic error when package is not found
[@&#8203;Shion1305](https://redirect.github.com/Shion1305)
[#&#8203;3138](https://redirect.github.com/aquaproj/aqua/issues/3138)
remove: Ignore not found commands

###
[`v2.35.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.35.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.34.0...v2.35.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.35.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.35.0)
| aquaproj/aqua@v2.34.0...v2.35.0

##### Features

[#&#8203;3119](https://redirect.github.com/aquaproj/aqua/issues/3119)
[#&#8203;3131](https://redirect.github.com/aquaproj/aqua/issues/3131)
Verify packages' GitHub Artifact Attestations

When aqua installs packages, it verifies their GitHub Artifact
Attestations if they are provided and registries have settings for
GitHub Artifact Attestations.

[#&#8203;3117](https://redirect.github.com/aquaproj/aqua/issues/3117)
Create GitHub Artifact Attestations of aqua

We start providing aqua's GitHub Artifact Attestations!

https://github.com/aquaproj/aqua/attestations

If you download aqua from GitHub Releases, you can verify GitHub
Artifact Attestations using GitHub CLI.


https://aquaproj.github.io/docs/install#verify-downloaded-binaries-from-github-releases

Reference:

-
https://aquaproj.github.io/docs/reference/security/github-artifact-attestations
-
https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds

##### Fixes

[#&#8203;3129](https://redirect.github.com/aquaproj/aqua/issues/3129)
Redirect stdout of some commands to stderr

aqua executes some os commands to install packages.

-   go install
-   go build
-   cargo
-   cosign
-   slsa-verifier
-   minisign
-   gh attestation verify

aqua should redirect the stdout of these commands to stderr.

###
[`v2.34.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.34.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.33.0...v2.34.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.34.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.34.0)
| aquaproj/aqua@v2.33.0...v2.34.0

##### Features

[#&#8203;3103](https://redirect.github.com/aquaproj/aqua/issues/3103)
Enabling you to verify checksum files using Minisign

You can now verify checksum files using Minisign.

e.g.

```yaml
        checksum:
          type: github_release
          asset: sha256.txt
          algorithm: sha256
          minisign:
            type: github_release
            asset: sha256.txt.minisig
            public_key: RWQ/i9xseZwBVE7pEniCNjlNOeeyp4BQgdZDLQcAohxEAH5Uj5DEKjv6
```

###
[`v2.33.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.33.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.32.0...v2.33.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.33.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.33.0)
| aquaproj/aqua@v2.32.0...v2.33.0

##### Features

[#&#8203;3101](https://redirect.github.com/aquaproj/aqua/issues/3101)
Enable you to remove `go_install` and `http` packages

You can now uninstall  `go_install` and `http` packages!
Furthermore, the uninstall can now handles version_overrides properly.

###
[`v2.32.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.32.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.31.0...v2.32.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.32.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.32.0)
| aquaproj/aqua@v2.31.0...v2.32.0

##### Features

[#&#8203;3075](https://redirect.github.com/aquaproj/aqua/issues/3075)
[#&#8203;3094](https://redirect.github.com/aquaproj/aqua/issues/3094)
Support removing links from the `bin` directory

By default, `aqua remove` command removes only packages from the `pkgs`
directory and doesn't remove links from the `bin` directory.
This release has added the command line option `-mode` to the remove
command.
The value of `-mode` is a string containing characters `l` and `p`.
The order of the characters doesn't matter.

```sh
aqua rm -m l cli/cli # Remove only links
aqua rm -m pl cli/cli # Remove links and packages
```

You can also configure the mode by the environment variable
`AQUA_REMOVE_MODE`, so you can change the default behaviour of `aqua
remove` command by setting `AQUA_REMOVE_MODE` in your shell setting such
as `.bashrc`.

```sh
export AQUA_REMOVE_MODE=pl
```

###
[`v2.31.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.31.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.30.0...v2.31.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.31.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.31.0)
| aquaproj/aqua@v2.30.0...v2.31.0

##### Overview

##### Featuers

[#&#8203;2978](https://redirect.github.com/aquaproj/aqua/issues/2978)
[#&#8203;2994](https://redirect.github.com/aquaproj/aqua/issues/2994)
Support verifying packages with minisign
[#&#8203;3052](https://redirect.github.com/aquaproj/aqua/issues/3052)
Support passing variables

##### Fixes

[#&#8203;3012](https://redirect.github.com/aquaproj/aqua/issues/3012)
Fix typo `temporal`. Replace them with `temporary`
[#&#8203;3017](https://redirect.github.com/aquaproj/aqua/issues/3017)
[#&#8203;3024](https://redirect.github.com/aquaproj/aqua/issues/3024)
Stop using `replace` directive

##### Others

Update Go 1.22.5 to 1.22.6

##### Feature - Support verifying packages with minisign

[#&#8203;2978](https://redirect.github.com/aquaproj/aqua/issues/2978)
[#&#8203;2994](https://redirect.github.com/aquaproj/aqua/issues/2994)

Support verifying packages with
[minisign](https://redirect.github.com/jedisct1/minisign).

##### Why is the feature needed?

To install some packages securely.
For example, [zig](https://ziglang.org/download/) is signed by minisign.

##### Example Code

This feature is similar to Cosign and slsa-verifier.

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

This feature depends on minisign.
So aqua should install minisign transparently same as Cosign and
slsa-verifier.

registry.yaml

```yaml
minisign:
  enabled: true
  public_key: "RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U"

##### public_key_url: https://example/signature.pub
```

##### Feature - Support passing variables

[#&#8203;3052](https://redirect.github.com/aquaproj/aqua/issues/3052)

Add the optional field `vars` in aqua.yaml and Registry.

##### `vars` in Registry

e.g.

```yaml
packages:
  - type: github_release
    repo_owner: indygreg
    repo_name: python-build-standalone
    asset: cpython-{{.Vars.python_version}}+{{.Version}}-{{.Arch}}-{{.OS}}-install_only.{{.Format}} # .Vars.python_version
    vars:
      - name: python_version
        required: true

##### ...
```

`vars` is a list of variables.
Fields of a variable

-   name: string (Required): A variable name
- required: boolean (Optional): If true, the variable is required. To
use the package, users need to set the variable in aqua.yaml
-   default: any (Optional): The default value of the variable

Variables are passed to template strings as `.Vars.<template name>`.

e.g.

asset:
cpython-{{.Vars.python_version}}+{{.Version}}-{{.Arch}}-{{.OS}}-install_only.{{.Format}}

##### `vars` in aqua.yaml

e.g.

```yaml
packages:
  - name: astral-sh/python-build-standalone@20240726
    vars:
      python_version: 3.11.9
```

`vars` is a map of variables.
The key is a variable name and the value is a variable value.

###
[`v2.30.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.30.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.29.2...v2.30.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.30.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.30.0)
| aquaproj/aqua@v2.29.2...v2.30.0

#### Features

[#&#8203;2918](https://redirect.github.com/aquaproj/aqua/issues/2918)
[#&#8203;3005](https://redirect.github.com/aquaproj/aqua/issues/3005)
Use aqua-proxy and hard links instead of shell scripts and bat scripts
on Windows

Document:
[https://github.com/aquaproj/aquaproj.github.io/pull/1049](https://redirect.github.com/aquaproj/aquaproj.github.io/pull/1049)
https://aquaproj.github.io/docs/reference/lazy-install#on-windows

aqua doesn't use symbolic links on Windows because symbolic links have
several issues on Windows.

1. [Non-administrators can't create symbolic links by default on
Windows](https://redirect.github.com/git-for-windows/git/wiki/Symbolic-Links)
2. [PowerShell doesn't use the final target of a symbolic link when
starting a process or running a native command on
Windows](https://redirect.github.com/PowerShell/PowerShell/issues/16171)

aqua v2.29.2 or older used shell scripts and bat scripts instead of
symbolic links and aqua-proxy.

[#&#8203;885](https://redirect.github.com/aquaproj/aqua/issues/885)
[#&#8203;892](https://redirect.github.com/aquaproj/aqua/issues/892)
[#&#8203;893](https://redirect.github.com/aquaproj/aqua/issues/893) aqua
>= v1.12.0, aqua <= v2.29.2

But using shell scripts and bat scripts also had several issues.

1.  Using both shell scripts and bat scripts is confusing
2. tools can't be executed on Nushell
[https://github.com/aquaproj/aqua/issues/2918#issuecomment-2223107022](https://redirect.github.com/aquaproj/aqua/issues/2918#issuecomment-2223107022)
3. bat scripts can't handle signals properly
[https://github.com/aquaproj/aqua/issues/2918#issuecomment-2228449541](https://redirect.github.com/aquaproj/aqua/issues/2918#issuecomment-2228449541)

So aqua v2.30.0 or later uses hard links and aqua-proxy instead of shell
scripts and bat scripts.
[#&#8203;2918](https://redirect.github.com/aquaproj/aqua/issues/2918)
aqua installs `aqua-proxy` and creates hard links to `aqua-proxy` on
`$(aqua root-dir)/bin` directory.
When aqua updates `aqua-proxy`, aqua recreates hard links.
From aqua v2.30.0, aqua doesn't use bat scripts so you can remove
`$(aqua root-dir)/bat` directory and remove `$(aqua root-dir)/bat` from
`PATH`.

#### Others

[#&#8203;3004](https://redirect.github.com/aquaproj/aqua/issues/3004)
Update slsa-verifier to v2.6.0
[#&#8203;3008](https://redirect.github.com/aquaproj/aqua/issues/3008)
Update module github.com/goccy/go-yaml to v1.12.0

###
[`v2.29.2`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.29.2)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.29.1...v2.29.2)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.29.2)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.29.2)
| aquaproj/aqua@v2.29.1...v2.29.2

##### Bug Fixes

[#&#8203;3001](https://redirect.github.com/aquaproj/aqua/issues/3001)
Fix checksums of Cosign

Fixed a bug of aqua v2.29.1

###
[`v2.29.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.29.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.29.0...v2.29.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.29.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.29.1)
| aquaproj/aqua@v2.29.0...v2.29.1

#### Features

[#&#8203;2965](https://redirect.github.com/aquaproj/aqua/issues/2965)
list: Add an alias of command line option `-installed`

```sh
aqua list -i
```

#### Fixes

[#&#8203;2981](https://redirect.github.com/aquaproj/aqua/issues/2981)
Fix a bug that the shell completion of specific tools doesn't work

For detail, please see the following issues and pull request.

-
[https://github.com/lintnet/lintnet/issues/528#issuecomment-2192810380](https://redirect.github.com/lintnet/lintnet/issues/528#issuecomment-2192810380)
-
[https://github.com/urfave/cli/issues/1932](https://redirect.github.com/urfave/cli/issues/1932)
-
[https://github.com/urfave/cli/pull/1938](https://redirect.github.com/urfave/cli/pull/1938)

#### Others

Update Go to 1.22.5

###
[`v2.29.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.29.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.28.1...v2.29.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.29.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.29.0)
| aquaproj/aqua@v2.28.1...v2.29.0

##### Features

[#&#8203;2929](https://redirect.github.com/aquaproj/aqua/issues/2929)
Support fish completion

Added a sub command `aqua completion fish`, which outputs scripts for
fish completion

You can source the output to enable the completion.

```sh
aqua completion fish | source
```

Or you can write the output to a file.


https://fishshell.com/docs/current/completions.html#where-to-put-completions

```sh
aqua completion fish > ~/.config/fish/completions/aqua.fish
```

###
[`v2.28.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.28.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.28.0...v2.28.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.28.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.28.1)
| aquaproj/aqua@v2.28.0...v2.28.1

##### Bug Fixes

[#&#8203;2904](https://redirect.github.com/aquaproj/aqua/issues/2904)
generate: Fix a bug that `aqua g -i` fails if aqua.yaml doesn't have the
field `packages`
[#&#8203;2902](https://redirect.github.com/aquaproj/aqua/issues/2902)
info: Fix a bug that user names aren't masked on Windows
[@&#8203;sapphi-red](https://redirect.github.com/sapphi-red)

###
[`v2.28.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.28.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.27.4...v2.28.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.28.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.28.0)
| aquaproj/aqua@v2.27.4...v2.28.0

##### Features


[#&#8203;2609](https://redirect.github.com/orgs/aquaproj/discussions/2609)
[#&#8203;2730](https://redirect.github.com/aquaproj/aqua/issues/2730)
[#&#8203;2632](https://redirect.github.com/aquaproj/aqua/issues/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.

```yaml
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.

[#&#8203;2880](https://redirect.github.com/aquaproj/aqua/issues/2880)
Ignore invalid packages and continue working

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

###
[`v2.27.4`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.27.4)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.27.3...v2.27.4)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.27.4)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.27.4)
| aquaproj/aqua@v2.27.3...v2.27.4

##### Bug Fixes

[#&#8203;2144](https://redirect.github.com/aquaproj/aqua/issues/2144)
[#&#8203;2510](https://redirect.github.com/orgs/aquaproj/discussions/2510)
[#&#8203;2871](https://redirect.github.com/aquaproj/aqua/issues/2871)
Fix a bug that update-aqua fails on Windows

##### Others

Update Go 1.22.2 to 1.22.3

###
[`v2.27.3`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.27.3)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.27.2...v2.27.3)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.27.3)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.27.3)
| aquaproj/aqua@v2.27.2...v2.27.3

##### Bug Fixes

[#&#8203;2833](https://redirect.github.com/aquaproj/aqua/issues/2833)
[#&#8203;2834](https://redirect.github.com/aquaproj/aqua/issues/2834)
Fix a bug that a checksum id of [go_build type
package](https://aquaproj.github.io/docs/reference/registry-config/go-build-package)
is empty

aqua-checksums.json

```json
    {
      "id": "",
      "checksum": "C4D72E482B85570A1A73776EEF47E993B5F8FA6C204E0B1CAA794E4DF4F13521",
      "algorithm": "sha256"
    }
```

###
[`v2.27.2`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.27.2)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.27.1...v2.27.2)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.27.2)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.27.2)
| aquaproj/aqua@v2.27.1...v2.27.2

##### Bug Fixes

[#&#8203;2830](https://redirect.github.com/aquaproj/aqua/issues/2830)
Improve handling of broken registry JSON files

When aqua reads Standard Registry and github_content Registries, aqua
converts them to JSON once and saves them.
And aqua reads JSON files instead of YAML files from the next time.
This improves the performance a bit.
[#&#8203;2517](https://redirect.github.com/aquaproj/aqua/issues/2517)

But if a JSON file got broken, aqua got not working.
In that case, you had to remove the file yourself.

This issue rarely occurs, but this release resolves it.
If a JSON file gets broken, aqua removes and recreates the file.
So aqua continues working and you don't have to remove the file
yourself.

###
[`v2.27.1`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.27.1)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.27.0...v2.27.1)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.27.1)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.27.1)
| aquaproj/aqua@v2.27.0...v2.27.1

#### Others

[#&#8203;2824](https://redirect.github.com/aquaproj/aqua/issues/2824)
[#&#8203;2825](https://redirect.github.com/aquaproj/aqua/issues/2825)
Generate shell completion on `brew install`
[@&#8203;ryota2357](https://redirect.github.com/ryota2357)

ref.
https://github.com/aquaproj/homebrew-aqua/blob/c4731da7c66a797e93b5efbcc5340b39f86f559b/aqua.rb#L19

⚠️ To enable shell completion, you have to configure FPATH and so on.

[#&#8203;2809](https://redirect.github.com/aquaproj/aqua/issues/2809)
chore: update aqua-proy to
[v1.2.6](https://redirect.github.com/aquaproj/aqua-proxy/releases/tag/v1.2.6)

#### 🎉 New Contributors

Thank you for your contribution!

[@&#8203;ryota2357](https://redirect.github.com/ryota2357)
[#&#8203;2825](https://redirect.github.com/aquaproj/aqua/issues/2825)

###
[`v2.27.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.27.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.26.0...v2.27.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.27.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.27.0)
| aquaproj/aqua@v2.26.0...v2.27.0

#### Features

[#&#8203;2702](https://redirect.github.com/aquaproj/aqua/issues/2702)
[#&#8203;2806](https://redirect.github.com/aquaproj/aqua/issues/2806)
checksum: Support enforcing checksum verification via environment
variables

You can enforce checksum verification by environment variables
`AQUA_ENFORCE_CHECKSUM` and `AQUA_ENFORCE_REQUIRE_CHECKSUM`.

```sh
export AQUA_ENFORCE_CHECKSUM=true
export AQUA_ENFORCE_REQUIRE_CHECKSUM=true
```

This is useful for both CI and local development.

Checksum verification is disabled by default, and you can disable
checksum verification by setting.
If you manage a Monorepo and want to make checksum verification
mandatory in CI, you can set these environment variables in CI. Then
checksum verification is enabled regardless of the setting of aqua.yaml.

And if you want to enforce checksum verification on your laptop, you can
set these environment variables in your shell configuration files such
as .bashrc and .zshrc.

###
[`v2.26.0`](https://redirect.github.com/aquaproj/aqua/releases/tag/v2.26.0)

[Compare
Source](https://redirect.github.com/aquaproj/aqua/compare/v2.25.2...v2.26.0)

[Pull
Requests](https://redirect.github.com/aquaproj/aqua/pulls?q=is%3Apr+milestone%3Av2.26.0)
|
[Issues](https://redirect.github.com/aquaproj/aqua/issues?q=is%3Aissue+milestone%3Av2.26.0)
| aquaproj/aqua@v2.25.2...v2.26.0

##### Features

[#&#8203;2782](https://redirect.github.com/aquaproj/aqua/issues/2782)
[#&#8203;2804](https://redirect.github.com/aquaproj/aqua/issues/2804)
generate: add `-g` option to add packages to a global configuration file

e.g.

```console
$ aqua g -g cli/cli
```

You can add packages to a global configuration file with `-g` and `-i`
option.

e.g.

```console
$ aqua g -g -i cli/cli
```

If there are multiple global configuration files, a first global
configuration file is used.

##### Others

[#&#8203;2803](https://redirect.github.com/aquaproj/aqua/issues/2803)
Update the help message of `remove` command

> Note that this command remove files from AQUA_ROOT_DIR/pkgs, but
doesn't remove packages from aqua.yaml and doesn't remove files from
AQUA_ROOT_DIR/bin and AQUA_ROOT_DIR/bat.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 1 * *" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/masterpointio/terraform-spacelift-automation).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0by11cGdyYWRlIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Veronika Gnilitska <30597968+gberenice@users.noreply.github.com>
  • Loading branch information
renovate[bot] and gberenice authored Dec 23, 2024
1 parent b28ee13 commit 507f296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tf-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install Aqua
uses: aquaproj/aqua-installer@f13c5d2f0357708d85477aabe50fd3f725528745 # v3.1.0
with:
aqua_version: v2.25.2
aqua_version: v2.40.0

- name: Aqua Install
shell: bash
Expand Down

0 comments on commit 507f296

Please sign in to comment.