I'm using pdebuild
to test my package on older versions of Ubuntu. However an environment variable, GOROOT
is leaking through to the build from my environment.
debian/tmp/usr/lib/gocode/src/code.brandscreen.net/cortex/go/util/http.go:4:2: cannot find package "io" in any of:
/home/mjoiner/src/go/src/pkg/io (from $GOROOT)
/tmp/buildd/golang-brandscreen-0.0/debian/tmp/usr/lib/gocode/src/io (from $GOPATH)
/usr/lib/gocode/src/io
How do I clear this (and other environment variables) when calling pdebuild
?