gopher.vim icon indicating copy to clipboard operation
gopher.vim copied to clipboard

go compiler doesn't catch some errors

Open arp242 opened this issue 6 years ago • 0 comments

For example:

:!go install  zgo.at/goatcounter/cmd/goatcounter ./cmd/goatcounter/ 2>&1| tee /tmp/vsJ7OHh/29
build zgo.at/goatcounter/cmd/goatcounter: cannot load zgo.at/goatcounter/stripe: module zgo.at/goatcounter/stripe: Get https://proxy.golang.org/zgo.at/goatcounter/stripe/@v/list: dial tcp: lookup proxy.golang.org: Temporary failure in name resolution

Another one I've run in to a few times is a module without go.mod:

$ go build
# _/home/martin/n
runtime.main_main·f: function main is undeclared in the main package
# a
runtime.main_main·f: function main is undeclared in the main package
go: finding zgo.at/goatcounter/stripe latest
go: zgo.at/goatcounter/[email protected]: parsing go.mod: unexpected module path "zgo.at/goatcounter"
go: error loading module requirements

arp242 avatar Jan 08 '20 12:01 arp242