Kubuxu / go-ipfs-swarm-key-gen

118 stars 60 forks source link

Can't use `go get` — 'go get' is no longer supported outside a module. #10

Open truthchainadam opened 2 years ago

truthchainadam commented 2 years ago
$ go get -u github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen
go: go.mod file not found in current directory or any parent directory.
    'go get' is no longer supported outside a module.
    To build and install a command, use 'go install' with a version,
    like 'go install example.com/cmd@latest'
    For more information, see https://golang.org/doc/go-get-install-deprecation

$ go version
go version go1.18.2 linux/amd64
3chdog commented 2 years ago

I use docker image of Ubuntu:latest, and I can download this by

go install github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen@latest

or you can download the code of this repo (main.go) and run:

go run main.go
truthchainadam commented 2 years ago

Should this workaround be in the Readme?

3chdog commented 2 years ago

That would be good to do so ,maybe. But I am not the author of this repo haha.