godebug icon indicating copy to clipboard operation
godebug copied to clipboard

Support interaction with godep

Open eapache opened this issue 9 years ago • 3 comments

A lot of go programs use https://github.com/tools/godep for dependency management, which also provides a "wrapper" command (godep go build, godep go test, etc) for manipulating GOPATH. Dunno if this is possible, but it would be very handy to be able to godebug projects that use godep.

eapache avatar Apr 20 '15 19:04 eapache

Good point, thanks! godebug could have an option to use an arbitrary wrapper instead of the go command. The two tricky parts that come to mind now are: (1) The initial parsing and type-checking of the program, for which there is probably no godep wrapper command, and (2) Multiple tools manipulating GOPATH could easily run into problems related to this.

I'll look into this more.

jeremyschlatter avatar Apr 20 '15 19:04 jeremyschlatter

easily run into problems related to this.

The latter is being addressed for Go 1.5 in https://github.com/golang/go/issues/10509! \o/

dmitshur avatar Apr 21 '15 04:04 dmitshur

The latter is being addressed for Go 1.5 in golang/go#10509! \o/

Nice! That's awesome.

jeremyschlatter avatar Apr 21 '15 05:04 jeremyschlatter