Go 1.11 introduced a new way of building Go code that no longer needs a GOPATH
at all. In due course, this will
become the default way of building. What's more, sooner or later, we are going to want to package software that
only builds with modules.
There should be some package-settable variable that controls whether you want to use modules or not. If you are going
to use modules, then the repo should have a go.mod
file. Otherwise (e.g. if there is a dep
file or something),
the build could start by doing go mod init
(which needs to be after make extract
).