Skip to content

go compiler doesn't catch some errors #30

@arp242

Description

@arp242

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/stripe@v0.0.0-20190819234703-ac5b4e6c06cf: parsing go.mod: unexpected module path "zgo.at/goatcounter"
go: error loading module requirements

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions