anz-bank / sysl-go

Communication library used by SYSL-generated code written in Go.
Apache License 2.0
10 stars 14 forks source link

go get github.com/anz-bank/sysl-go doesn't work #191

Closed orlade closed 4 years ago

orlade commented 4 years ago

The README says to run go get github.com/anz-bank/sysl-go but it fails:

$ go get github.com/anz-bank/sysl-go
can't load package: package github.com/anz-bank/sysl-go: no Go files in /home/orlade/.gvm/pkgsets/go1.14/global/src/github.com/anz-bank/sysl-go
orlade commented 4 years ago

I think it needs GO111MODULE=on in front.

joshcarp commented 4 years ago

since go 1.13 GO111MODULE=on is set by default if you're in a go module (a project with a go.mod file). The only reason why you'd want to run go get outside of a go module these days would be to install a binary, but this repo is only made up of packages and no installable binaries, so that wouldn't really ever be the case see the go changelog here: https://golang.org/doc/go1.13#tools