Pull Requests | Issues | v1.4.0...v1.5.0-0
Feature
#674 #675 #676 Support defining aliases of package names
You can install, execute, and search packages with aliases.
Sometimes repositories of packages are changed.
For example, talos-systems was renamed to siderolabs. aquaproj/aqua-registry#3224
And ahmetb/kubens
was deprecated. aquaproj/aqua-registry#1691
For compatibility, we would like to support package aliases and allows old package names.
Example
aqua.yaml
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
registries:
- type: local
name: local
path: registry.yaml
packages:
- name: ahmetb/kubens
registry: local
version: v0.9.4
registry.yaml
packages:
- name: ahmetb/kubectx/kubens
aliases:
- name: ahmetb/kubens
type: github_release
repo_owner: ahmetb
repo_name: kubectx
asset: "kubens_{{.Version}}_{{.OS}}_{{.Arch}}.{{.Format}}"
description: Faster way to switch between clusters and namespaces in kubectl
files:
- name: kubens
replacements:
386: i386
amd64: x86_64
format: tar.gz
format_overrides:
- goos: windows
format: zip
$ aqua list
local,ahmetb/kubectx/kubens
$ aqua g local,ahmetb/kubens
- name: ahmetb/kubectx/kubens@v0.9.4
registry: local
$ aqua i
INFO[0000] download and unarchive the package aqua_version= package_name=ahmetb/kubens package_version=v0.9.4 program=aqua registry=local
Others
Update github.com/urfave/cli/v2 from v2.4.0 to v2.5.1