I got below error when installing
$ go get -u go.mozilla.org/sops/cmd/sops
On macOS
go: finding github.com/golang/groupcache latest
build go.mozilla.org/sops/cmd/sops: cannot load gopkg.in/urfave/cli.v1: cannot find module providing package gopkg.in/urfave/cli.v1
What go version are you using?
On Sun 8. Sep 2019 at 19:41, wistonk notifications@github.com wrote:
I got below error when installing
$ go get -u go.mozilla.org/sops/cmd/sops
On macOS
go: finding github.com/golang/groupcache latest
build go.mozilla.org/sops/cmd/sops: cannot load gopkg.in/urfave/cli.v1: cannot find module providing package gopkg.in/urfave/cli.v1—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mozilla/sops/issues/515?email_source=notifications&email_token=AARH4V3VAJDXUUFUX5XBRADQIVBO3A5CNFSM4IUUMNSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HKA2ZGA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARH4V3EE66FNNOEEI7VFDTQIVBO3ANCNFSM4IUUMNSA
.
@autrilla
$ kustomize version
Version: {KustomizeVersion:unknown GitCommit:$Format:%H$ BuildDate:1970-01-01T00:00:00Z GoOs:darwin GoArch:amd64}
That doesn’t say what go version you’re using. Can you run ‘go version’ the
same way you run go get?
On Tue 10. Sep 2019 at 11:17, wistonk notifications@github.com wrote:
@autrilla https://github.com/autrilla
$ kustomize version
Version: {KustomizeVersion:unknown GitCommit:$Format:%H$ BuildDate:1970-01-01T00:00:00Z GoOs:darwin GoArch:amd64}—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/mozilla/sops/issues/515?email_source=notifications&email_token=AARH4V6EPURR4H2NBKLZP7DQI5X4XA5CNFSM4IUUMNSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6KTAIQ#issuecomment-529870882,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARH4V3N5XX6LAXIFFD2K5LQI5X4XANCNFSM4IUUMNSA
.
@autrilla
$ go version
go version go1.13 darwin/amd64
I can't reproduce this:
/tmp
❯ mkdir go
/tmp
❯ export GOPATH=/tmp/go
/tmp
❯ go version
go version go1.13 darwin/amd64
/tmp
❯ go get -u go.mozilla.org/sops/cmd/sops
/tmp 2m 3s
❯ ./go/bin/sops --version
sops 3.3.1 (latest)
I was able to fix this error by adding this to go.mod:
replace gopkg.in/urfave/cli.v1 => github.com/urfave/cli v1.21.0
Apparently, it has been renamed.
thx
Most helpful comment
I was able to fix this error by adding this to
go.mod:Apparently, it has been renamed.