gogen-avro
gogen-avro copied to clipboard
Install command not working
I've tried running the install command in the Readme for v7 go install github.com/actgardner/gogen-avro/v7/cmd/...
, and it is refusing to install with go: warning: "github.com/actgardner/gogen-avro/v7/cmd/..." matched no packages
.
I've also tried dropping the /...
at the end, which gives me:
go: finding github.com/actgardner/gogen-avro/v7/cmd latest
go: finding github.com/actgardner/gogen-avro/v7 v7.1.1
go: downloading github.com/actgardner/gogen-avro/v7 v7.1.1
go: extracting github.com/actgardner/gogen-avro/v7 v7.1.1
go: finding github.com/actgardner/gogen-avro v7.1.1+incompatible
go: downloading github.com/actgardner/gogen-avro v7.1.1+incompatible
go: extracting github.com/actgardner/gogen-avro v7.1.1+incompatible
can't load package: package github.com/actgardner/gogen-avro/v7/cmd: unknown import path "github.com/actgardner/gogen-avro/v7/cmd": cannot find module providing package github.com/actgardner/gogen-avro/v7/cmd
It appears that something with the move to v7 has caused the go install to no longer cooperate. What should I try doing, or is this a bug? What information would you like me to provide to help reproduce? My coworker is also unable to install, so it isn't isolated to just me.
I've updated the docs to go get github.com/actgardner/gogen-avro/v7/cmd/...
which should be the correct command.
Thanks for the update! When I run that I get:
go get github.com/actgardner/gogen-avro/v7/cmd/...
go: warning: "github.com/actgardner/gogen-avro/v7/cmd/..." matched no packages
What version of Go are you using? Can you try go get github.com/actgardner/gogen-avro/...
Hello! I encountered the same issue with the following Go version:
go version go1.14 windows/amd64
Running the command in the previous commentary did the trick for me:
go get github.com/actgardner/gogen-avro/...
Regards
Hi @Bluezen - have you tried go install github.com/actgardner/gogen-avro/...@latest
? The README has been updated since go get
was deprecated.
go install github.com/actgardner/gogen-avro/...@latest
RETURNS
go install: github.com/actgardner/gogen-avro/...@latest: module github.com/actgardner/gogen-avro@latest found (v10.2.1+incompatible), but does not contain packages matching github.com/actgardner/gogen-avro/...
go version go1.17.2 darwin/amd64
go install github.com/actgardner/gogen-avro/...@latest
RETURNS
go install: github.com/actgardner/gogen-avro/...@latest: module github.com/actgardner/gogen-avro@latest found (v10.2.1+incompatible), but does not contain packages matching github.com/actgardner/gogen-avro/...
go version go1.17.2 darwin/amd64
Did you find a solution to this?