99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using "go install"

elieux opened this issue · comments

Hello. I'm trying to switch to using go install instead of manually downloading each piece of software. At first glance, it seems to have worked for aws-vault, but there was no wincredui. It seems I need to mention v6 in the command to get the latest release, but I only found out after a bunch of trial and error. Would it be okay to mention the installation command in the README?

> go install github.com/99designs/aws-vault@latest
go: downloading github.com/99designs/aws-vault v4.5.1+incompatible
go: finding module for package gopkg.in/alecthomas/kingpin.v2
go: finding module for package github.com/99designs/keyring
go: finding module for package github.com/aws/aws-sdk-go/aws/credentials
go: finding module for package github.com/aws/aws-sdk-go/aws
go: finding module for package github.com/aws/aws-sdk-go/service/sts
go: finding module for package github.com/aws/aws-sdk-go/aws/session
go: finding module for package github.com/skratchdot/open-golang/open
go: finding module for package golang.org/x/crypto/ssh/terminal
go: finding module for package github.com/aws/aws-sdk-go/aws/awserr
go: finding module for package github.com/aws/aws-sdk-go/service/iam
go: finding module for package github.com/go-ini/ini
go: finding module for package github.com/mitchellh/go-homedir
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
go: downloading github.com/aws/aws-sdk-go v1.44.66
go: downloading github.com/go-ini/ini v1.66.6
go: downloading github.com/99designs/keyring v1.2.1
go: found gopkg.in/alecthomas/kingpin.v2 in gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: found github.com/99designs/keyring in github.com/99designs/keyring v1.2.1
go: found github.com/aws/aws-sdk-go/aws in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/aws/aws-sdk-go/aws/credentials in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/aws/aws-sdk-go/aws/session in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/aws/aws-sdk-go/service/sts in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/skratchdot/open-golang/open in github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
go: found golang.org/x/crypto/ssh/terminal in golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
go: found github.com/aws/aws-sdk-go/aws/awserr in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/aws/aws-sdk-go/service/iam in github.com/aws/aws-sdk-go v1.44.66
go: found github.com/go-ini/ini in github.com/go-ini/ini v1.66.6
go: found github.com/mitchellh/go-homedir in github.com/mitchellh/go-homedir v1.1.0
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading github.com/danieljoos/wincred v1.1.2
go: downloading github.com/dvsekhvalnov/jose2go v1.5.0
go: downloading github.com/mtibben/percent v0.2.1
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a
go: finding module for package github.com/alecthomas/template
go: finding module for package github.com/alecthomas/units
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
go: found github.com/alecthomas/template in github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: found github.com/alecthomas/units in github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137

> go install github.com/99designs/aws-vault@v6.6.0
go: github.com/99designs/aws-vault@v6.6.0: github.com/99designs/aws-vault@v6.6.0: invalid version: go.mod has post-v6 module path "github.com/99designs/aws-vault/v6" at revision v6.6.0

> go install github.com/99designs/aws-vault/v6@latest
go: downloading github.com/99designs/aws-vault/v6 v6.6.0
go: downloading github.com/alecthomas/kingpin v0.0.0-20200323085623-b6657d9477a6
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.17.0
go: downloading github.com/aws/aws-sdk-go-v2 v1.14.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.15.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.14.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.10.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.11.0
go: downloading gopkg.in/ini.v1 v1.66.4
go: downloading github.com/aws/smithy-go v1.11.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.5
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.8.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.3.0
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.9.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.11.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.3.6

Feel free to use this but it's not the recommended way to install.