Skip to content

Commit

Permalink
chore(deps): update ⇡ aqua-installer aquaproj/aqua to v2.13.1 (#118)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [aquaproj/aqua](https://togithub.com/aquaproj/aqua) | minor |
`v2.12.2` -> `v2.13.1` |

---

### Release Notes

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

### [`v2.13.1`](https://togithub.com/aquaproj/aqua/releases/tag/v2.13.1)

[Compare
Source](https://togithub.com/aquaproj/aqua/compare/v2.13.0-1...v2.13.1)

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

##### Others

[#&#8203;2332](https://togithub.com/aquaproj/aqua/issues/2332)
chore(deps): update dependency golang/go to v1.21.3
[#&#8203;2335](https://togithub.com/aquaproj/aqua/issues/2335)
fix(deps): update module github.com/google/go-cmp to v0.6.0

### [`v2.13.0`](https://togithub.com/aquaproj/aqua/releases/tag/v2.13.0)

[Compare
Source](https://togithub.com/aquaproj/aqua/compare/v2.12.2...v2.13.0-1)

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

This release includes several improvement of Registry settings.
This updates affect Registry developers including aqua-registry's
contributors.
There is no direct change for almost all aqua users.

To keep the compatibility and minimize the effect to users, we won't use
new features in
[aqua-registry](https://togithub.com/aquaproj/aqua-registry) for at
least one month after v2.13.0 is released.
If we apply new features to existing packages of aqua-registry, this
requires a major update of aqua-registry because this is a breaking
change.

##### Features

[#&#8203;2318](https://togithub.com/aquaproj/aqua/issues/2318)
[#&#8203;2320](https://togithub.com/aquaproj/aqua/issues/2320) Add a new
field `envs` to `overrides` instead of `goos` and `goarch`
[#&#8203;2132](https://togithub.com/aquaproj/aqua/issues/2132)
[#&#8203;2317](https://togithub.com/aquaproj/aqua/issues/2317) Support
using `go_install` or `go_build` if the platform isn't included in
`supported_envs`
[#&#8203;1774](https://togithub.com/aquaproj/aqua/issues/1774)
[#&#8203;2314](https://togithub.com/aquaproj/aqua/issues/2314) Support
omitting `.{{.Format}}` in `asset` and `url`
[#&#8203;1876](https://togithub.com/aquaproj/aqua/issues/1876)
[#&#8203;2313](https://togithub.com/aquaproj/aqua/issues/2313) Support
short file extensions in `format`
[#&#8203;1774](https://togithub.com/aquaproj/aqua/issues/1774)
[#&#8203;2310](https://togithub.com/aquaproj/aqua/issues/2310) Add the
template variable `AssetWithoutExt` to `files[].src`

##### Add a new field `envs` to `overrides` instead of `goos` and
`goarch`

[#&#8203;2318](https://togithub.com/aquaproj/aqua/issues/2318)
[#&#8203;2320](https://togithub.com/aquaproj/aqua/issues/2320)

Add a new field `envs` to `overrides`.
The syntax of `envs` is same with `supported_envs`.

The syntax of `envs` is more flexible than the combination of `goos` and
`goarch`.
In some cases we can simplify the code.

For example, the combination of `goos` and `goarch` can't express the
pair of `linux/arm64` and `windows/arm64`.

```yaml
overrides:
  - goos: windows
    goarch: arm64

##### ...
  - goos: linux
    goarch: arm64

##### ...
```

`envs` can simplify the code.

```yaml
overrides:
  - envs:
      - windows/arm64
      - linux/arm64

##### ...
```

##### Support using `go_install` or `go_build` if the platform isn't
included in `supported_envs`

[#&#8203;2132](https://togithub.com/aquaproj/aqua/issues/2132)
[#&#8203;2317](https://togithub.com/aquaproj/aqua/issues/2317)

A new field `build` is added to Registry settings.
This enables to install packages by `go_install` or `go_build` on
platforms where prebuilt binaries aren't published.

This is an example usage of the new field `build`.

```yaml
packages:
  - type: github_release
    repo_owner: suzuki-shunsuke
    repo_name: tfcmt
    asset: tfcmt_{{.OS}}_{{.Arch}}.{{.Format}}
    format: tar.gz
    supported_envs:
      - linux
    build:
      type: go_build
      files:
        - name: tfcmt
          src: ./cmd/tfcmt
          dir: tfcmt-{{trimV .Version}}
```

`supported_envs` is `linux`, so on platforms other than linux aqua
installs tfcmt by `go_build`.

`go_install` is also available.

```yaml
    build:
      type: go_install
      path: github.com/suzuki-shunsuke/tfcmt/v4/cmd/tfcmt
```

If `go_build` failed on windows/arm64 and you'd like to exclude
windows/arm64, `excluded_envs` is available.

```yaml
    build:
      type: go_build
      excluded_envs:
        - windows/arm64
      files:
        - name: tfcmt
          src: ./cmd/tfcmt
          dir: tfcmt-{{trimV .Version}}
```

If you'd like to disable `build` in version_overrides, `enabled` is
available.

```yaml
build:
  enabled: false
```

##### Why not `overrides`?

Of course, we can do the same thing with `overrides`.
But `build` makes the intension of the code clear and simplify the code.

##### Support omitting `.{{.Format}}` in `asset` and `url`

[#&#8203;1774](https://togithub.com/aquaproj/aqua/issues/1774)
[#&#8203;2314](https://togithub.com/aquaproj/aqua/issues/2314)

The file extension is complemented if it isn't included in `asset` and
`url`.

e.g.

```yaml
asset: foo # This is same with `foo.tar.gz` and `foo.{{.Format}}`
format: tar.gz
```

The benefit is that you can unify the setting of `raw` format and non
`raw` format.

Before

```yaml
asset: kalker-{{.OS}}.{{.Format}}
format: zip
overrides:
  - goos: linux
    format: raw
    asset: kalker-{{.OS}}
```

After

```yaml
asset: kalker-{{.OS}}
format: zip
overrides:
  - goos: linux
    format: raw
```

You can disable the complementation by setting `append_ext: false`.

```yaml
append_ext: false
```

##### Support short file extensions in `format`

[#&#8203;1876](https://togithub.com/aquaproj/aqua/issues/1876)
[#&#8203;2313](https://togithub.com/aquaproj/aqua/issues/2313)

The following short file extensions can be available in `format`.

-   tbr
-   tbz
-   tbz2
-   tgz
-   tlz4
-   tsz
-   txz

e.g.

```yaml
format: tbz2
```

##### Add the template variable `AssetWithoutExt` to `files[].src`

[#&#8203;1774](https://togithub.com/aquaproj/aqua/issues/1774)
[#&#8203;2310](https://togithub.com/aquaproj/aqua/issues/2310)

The new template variable `AssetWithoutExt` is a string that a file
extension is removed from `Asset`.

e.g.

```yaml
    asset: aks-engine-{{.Version}}-{{.OS}}-{{.Arch}}.tar.gz
    files:
      - name: aks-engine
        src: "{{.AssetWithoutExt}}/aks-engine" # "{{.AssetWithoutExt}}" == "aks-engine-{{.Version}}-{{.OS}}-{{.Arch}}"
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, 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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/scottames/dots).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Oct 13, 2023
1 parent 1e1c54e commit 4e07315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/.chezmoiscripts/run_once_after_10_aqua.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cyan='\033[0;36m'
clear='\033[0m'

# renovate: depName=aquaproj/aqua datasource=github-releases
_aqua_latest_version=v2.12.2
_aqua_latest_version=v2.13.1

# renovate: depName=aquaproj/aqua-installer datasource=github-releases
_aqua_installer_version=v2.1.2
Expand Down

0 comments on commit 4e07315

Please sign in to comment.