divan/gotrace

Can't figure out how to build more complex examples

Opened this issue · 1 comments

The example using docker to build works for simple hello.go, but I can't figure out the syntax for a more complex example. I'm just not familiar enough with go and docker to figure this out, sorry.

Could you extend the documentation to give a more general example?

Thanks

$ docker run --rm -it \
>     -e GOOS=darwin \
>     -v $(pwd):/src divan/golang:gotrace \
>         go build -o /src/spigo-gotrace /src/spigo.go
/src/spigo.go:7:2: cannot find package "github.com/adrianco/spigo/actors/edda" in any of:
    /usr/local/go/src/github.com/adrianco/spigo/actors/edda (from $GOROOT)
    /go/src/github.com/adrianco/spigo/actors/edda (from $GOPATH)
... and many more similar errors

I am having a similar experience.

stat /Users/jeremyforan/go/src/jeremyforan/snmp/configuration.go: no such file or directory

but I can run cat on the file and clearly see I have the correct path.