sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ go build
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ godep save
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$
Actual behavior
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ go build
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ godep save
godep: Package (crypto/tls) not found
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ export GOROOT=$(go env GOROOT)
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$ godep save
sylvain@ubuntu-1604-dev:~/gopath/src/github.com/sylr/alertmanager-splunkbot[godep]$
Expected behavior
If GOROOT is not set godep should use
go env
Actual behavior
Steps to reproduce behavior
unset GOROOT
godep version
outputgodep v79 (linux/amd64/go1.9)
go version
outputgo version go1.9.2 linux/amd64