Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency aquaproj/aqua to v2.16.0 #183

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 6, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
aquaproj/aqua minor v2.12.1 -> v2.16.0

Release Notes

aquaproj/aqua (aquaproj/aqua)

v2.16.0

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.15.1...v2.16.0

Features

#​2380 Support removing packages by command names

e.g.

aqua rm tfcmt # Remove suzuki-shunsuke/tfcmt

v2.15.1

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.15.0...v2.15.1

Bug Fixes

#​2376 Fix a bug that aqua stops searching configuration files if files are located in either aqua or .aqua directory

How to reproduce the issue

Directory structure

/workspace/
  aqua.yaml
  foo/ # current directory
    aqua/
      aqua.yaml

Run aqua i.

aqua i
Expected behaviour

aqua installs packages with /workspace/aqua.yaml and /workspace/foo/aqua/aqua.yaml.

Actual behaviour

aqua installs packages with only /workspace/foo/aqua/aqua.yaml, and ignores /workspace/aqua.yaml.

v2.15.0

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.14.1...v2.15.0

Overview

generate-registry: Get all GitHub Releases by default

#​2351 #​2366

The behaviour of generate-registry command was changed.
The command gets all GitHub Releases by default to generate version_overrides.

The option --deep is deprecated. The option has no meaning anymore. The option is kept only for the compatibility.
The option will be removed at aqua v3.

The option --limit (-l) is added. This option takes an integer, which is the maximum number of releases.

e.g.

aqua gr --limit 100

generate-registry: Add an option -cmd

#​2349 #​2362

If -cmd is set, files is set.

e.g.

$ aqua gr -cmd gh cli/cli
### ...
  files:
    - name: gh

You can specify multiple commands with commas ,.

e.g.

$ aqua gr -cmd age,age-keygen FiloSottile/age
### ...
  files:
    - name: age
    - name: age-keygen

update-aqua: Add an alias upa to the command

#​2359

update-aqua is too long.

$ aqua upa # update-aqua

v2.14.1

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.14.0...v2.14.1

Fixes

#​2354 #​2356 generate: Fixed a bug that sometimes aqua g outputs non latest version

versiongetter: Fix getting the latest version

Use GetLatestRelease API before using ListReleases API

#​2245 #​2358 generate: Fixed a bug that aqua g -i fails when a comment exists in the same line with packages:

Get string values from *ast.StringNode.Value instead of ast.MapKeyNode.String()

Others

#​2340 fix(deps): update module github.com/google/go-github/v55 to v56

v2.14.0

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.13.1...v2.14.0

#​1657 #​2329 Update registries and packages by update command

Finally aqua update command is supported 🎉
You can update all packages and registries, or select updated packages.
You can also select packages and versions with fuzzy finder.

Document

[!NOTE]
You can update registries and packages by Renovate too.
Please see Update packages by Renovate.

You can update registries and packages by aqua update (up) command.

If no argument is passed, all registries and packages are updated to the latest.

### Update all packages and registries to the latest versions
aqua update

This command has an alias "up"

aqua up

This command

  • gets the latest version from GitHub Releases, GitHub Tags, and crates.io and updates aqua.yaml
  • doesn't install packages

Updated configuration file paths

This command finds a configuration file aqua.yaml according to the rule and updates only one file.
Once this command finds one file, it stops searching other aqua.yaml.

So if you want to update other files, please change the current directory or specify the configuration file path with the option -c.

aqua -c foo/aqua.yaml update

Update only registries

If you want to update only registries, please use the --only-registry [-r] option.

### Update only registries
aqua update -r

Update only packages

If you want to update only packages, please use the --only-package [-p] option.

### Update only packages
aqua update -p

Update only specific commands

You can specify packages with command names. aqua finds packages that have these commands and updates them.

aqua update <command name> [<command name> ...]

e.g.

### Update cli/cli
aqua update gh

Select packages with Fuzzy Finder

If you want to update only specific packages, please use the -i option.
You can select packages with the fuzzy finder.
If -i option is used, registries aren't updated.

### Select updated packages with fuzzy finder
aqua update -i

Select the package version with Fuzzy Finder

If you want to select versions, please use the -s option.
You can select versions with the fuzzy finder. You can not only update but also downgrade packages.

### Select updated packages and versions with fuzzy finder
aqua update -i -s

The field version is ignored

This command doesn't update packages if the version field is used.

packages:
  - name: cli/cli@v2.0.0 # Update
  - name: gohugoio/hugo
    version: v0.118.0 # Doesn't update

So if you don't want to update specific packages, the version field is useful.

commit hashes are ignored

This command doesn't update commit hashes.

packages:
  - name: google/pprof@d04f2422c8a17569c14e84da0fae252d9529826b # Doesn't update

⚠️ Known Issues

There are some known issues related to the third party library goccy/go-yaml.

null is set to packages wrongly if registries are updated and packages is empty

This issue is because of the third party library goccy/go-yaml.

Before

registries:
- ref: v4.60.0
  type: standard
packages:

Run aqua up.

$ aqua up
INFO[0000] updating a registry                           aqua_version= env=darwin/arm64 new_version=v4.65.0 old_version=v4.60.0 program=aqua registry_name=standard

After

registries:
- ref: v4.65.0
  type: standard
packages: null
Newlines are removed wrongly

This issue is because of the third party library goccy/go-yaml.

Before

registries:
- ref: v4.60.0
  type: standard

packages:
- name: suzuki-shunsuke/mkghtag@v0.1.1

Run aqua up.

$ aqua up
INFO[0000] updating a registry                           aqua_version= env=darwin/arm64 new_version=v4.65.0 old_version=v4.60.0 program=aqua registry_name=standard

After

registries:
- ref: v4.65.0
  type: standard
packages:
- name: suzuki-shunsuke/mkghtag@v0.1.1

Discord Channel was open 🎉

This has nothing to do with this release, but we opened a Discord channel 🎉

https://discord.com/channels/1141777454164365382/1162444533959757955

v2.13.1

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.13.0...v2.13.1

Others

#​2332 chore(deps): update dependency golang/go to v1.21.3
#​2335 fix(deps): update module github.com/google/go-cmp to v0.6.0

v2.13.0

Compare Source

Pull Requests | Issues | 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 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

#​2318 #​2320 Add a new field envs to overrides instead of goos and goarch
#​2132 #​2317 Support using go_install or go_build if the platform isn't included in supported_envs
#​1774 #​2314 Support omitting .{{.Format}} in asset and url
#​1876 #​2313 Support short file extensions in format
#​1774 #​2310 Add the template variable AssetWithoutExt to files[].src

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

#​2318 #​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.

overrides:
  - goos: windows
    goarch: arm64

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

### ...

envs can simplify the code.

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

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

#​2132 #​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.

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.

    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.

    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.

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

#​1774 #​2314

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

e.g.

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

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

After

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

You can disable the complementation by setting append_ext: false.

append_ext: false
Support short file extensions in format

#​1876 #​2313

The following short file extensions can be available in format.

  • tbr
  • tbz
  • tbz2
  • tgz
  • tlz4
  • tsz
  • txz

e.g.

format: tbz2
Add the template variable AssetWithoutExt to files[].src

#​1774 #​2310

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

e.g.

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

v2.12.2

Compare Source

Pull Requests | Issues | aquaproj/aqua@v2.12.1...v2.12.2

Bug Fixes

#​2303 Fix a bug that path isn't overriden by overrides

Others

#​2304 Update aqua-proxy to v1.2.4
#​2302 Update Go to v1.21.2
#​2286 #​2287 #​2289 #​2290 #​2291 Refactoring


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.12.2 Update dependency aquaproj/aqua to v2.13.0 Oct 10, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch 2 times, most recently from 0818995 to 69a1ead Compare October 10, 2023 10:16
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.13.0 Update dependency aquaproj/aqua to v2.13.1 Oct 11, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from 69a1ead to 64c80bf Compare October 11, 2023 06:51
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.13.1 Update dependency aquaproj/aqua to v2.14.0 Oct 16, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from 64c80bf to e32d467 Compare October 16, 2023 13:15
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.14.0 Update dependency aquaproj/aqua to v2.14.1 Oct 17, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from e32d467 to c11ec53 Compare October 17, 2023 00:08
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.14.1 Update dependency aquaproj/aqua to v2.15.0 Oct 17, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from c11ec53 to 1ca4d6a Compare October 17, 2023 12:39
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.15.0 Update dependency aquaproj/aqua to v2.15.1 Oct 21, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from 1ca4d6a to 54eeb6f Compare October 21, 2023 07:40
@renovate renovate bot changed the title Update dependency aquaproj/aqua to v2.15.1 Update dependency aquaproj/aqua to v2.16.0 Oct 22, 2023
@renovate renovate bot force-pushed the renovate/aquaproj-aqua-2.x branch from 54eeb6f to 4624ac9 Compare October 22, 2023 03:45
@little-forest little-forest merged commit 51c27c3 into main Oct 23, 2023
2 checks passed
@renovate renovate bot deleted the renovate/aquaproj-aqua-2.x branch October 23, 2023 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant