gogen-avro icon indicating copy to clipboard operation
gogen-avro copied to clipboard

Install command not working

Open ghost opened this issue 4 years ago • 7 comments

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.

ghost avatar Jul 15 '20 17:07 ghost

I've updated the docs to go get github.com/actgardner/gogen-avro/v7/cmd/... which should be the correct command.

actgardner avatar Jul 20 '20 00:07 actgardner

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

ghost avatar Jul 21 '20 20:07 ghost

What version of Go are you using? Can you try go get github.com/actgardner/gogen-avro/...

actgardner avatar Jul 26 '20 17:07 actgardner

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

Bluezen avatar Jun 01 '21 13:06 Bluezen

Hi @Bluezen - have you tried go install github.com/actgardner/gogen-avro/...@latest? The README has been updated since go get was deprecated.

actgardner avatar Apr 16 '22 20:04 actgardner

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

kk3009 avatar Apr 19 '22 09:04 kk3009

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?

Gabriel-Rockson avatar Oct 04 '23 15:10 Gabriel-Rockson