Pull Requests | Issues | v1.10.0-0...v1.10.0-1
Features
#823 #826 Support installing Go tools by go install
command
The new package type go_install
has been added.
The package is installed by go install
command.
So the command go
is required.
When aqua runs go install
, aqua sets the environment variable GOBIN
.
aqua is a CLI Version Manager, you have to specify the version. You can't specify latest
.
e.g. golang.org/x/perf/cmd/benchstat
registry.yaml
packages:
- type: go_install
path: golang.org/x/perf/cmd/benchstat
description: Benchstat computes and compares statistics about benchmarks
aqua.yaml
registries:
- name: local
type: local
path: registry.yaml
packages:
- name: golang.org/x/perf/cmd/benchstat
registry: local
version: 84e58bfe0a7e5416369e236afa007d5d9c58a0fa
$ aqua i
INFO[0000] create a symbolic link aqua_version= env=darwin/arm64 link_file=/Users/shunsukesuzuki/.local/share/aquaproj-aqua/bin/benchstat new=aqua-proxy package_name=golang.org/x/perf/cmd/benchstat package_version=84e58bfe0a7e5416369e236afa007d5d9c58a0fa program=aqua registry=local
INFO[0000] Installing a Go tool aqua_version= env=darwin/arm64 go_package_path=golang.org/x/perf/cmd/benchstat@84e58bfe0a7e5416369e236afa007d5d9c58a0fa gobin=/Users/shunsukesuzuki/.local/share/aquaproj-aqua/pkgs/go_install/golang.org/x/perf/cmd/benchstat/84e58bfe0a7e5416369e236afa007d5d9c58a0fa/bin package_name=golang.org/x/perf/cmd/benchstat package_version=84e58bfe0a7e5416369e236afa007d5d9c58a0fa program=aqua registry=local
go: downloading golang.org/x/perf v0.0.0-20220411212318-84e58bfe0a7e
$ aqua which benchstat
/Users/shunsukesuzuki/.local/share/aquaproj-aqua/pkgs/go_install/golang.org/x/perf/cmd/benchstat/84e58bfe0a7e5416369e236afa007d5d9c58a0fa/bin/github-compare
path
: Go package path. Ifpath
is not set butrepo_owner
andrepo_name
are set, the package path isgithub.com/<repo_owner>/<repo_name>
name
: The package name. Ifname
is not set butrepo_owner
andrepo_name
are set, the package name is<repo_owner>/<repo_name>
. Ifname
,repo_owner
, andrepo_name
aren't set,path
is used as the package name