divan / gotrace

Concurrency tracer and visualizer for Go (Golang) programming language
MIT License
1.97k stars 128 forks source link

Can't figure out how to build more complex examples #11

Open adrianco opened 8 years ago

adrianco commented 8 years ago

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
jeremyforan commented 4 years ago

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.