Closed brianredbeard closed 8 years ago
The previous configuration of ORG_PATH and REPO_PATH did not allow them to be set in the environment. This had the limitation of not allowing for runtime collaboration of builds and tests.
Previous behavior:
[bharrington@leviathan mayday]$ ORG_PATH="github.com/brianredbeard" bash -x ./build + ORG_PATH=github.com/coreos + REPO_PATH=github.com/coreos/mayday + '[' '!' -h gopath/src/github.com/coreos/mayday ']' + export GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin + GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin ++ go env + eval 'GOARCH="amd64"' 'GOBIN="/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin"' 'GOEXE=""' 'GOHOSTARCH="amd64"' 'GOHOSTOS="linux"' 'GOOS="linux"' 'GOPATH="/home/bharrington/Projects/golang"' 'GORACE=""' 'GOROOT="/usr/local/golang/latest/go"' 'GOTOOLDIR="/usr/local/golang/latest/go/pkg/tool/linux_amd64"' 'GO15VENDOREXPERIMENT="1"' 'CC="gcc"' 'GOGCCFLAGS="-fPIC' -m64 -pthread '-fmessage-length=0"' 'CXX="g++"' 'CGO_ENABLED="1"' ++ GOARCH=amd64 ++ GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin ++ GOEXE= ++ GOHOSTARCH=amd64 ++ GOHOSTOS=linux ++ GOOS=linux ++ GOPATH=/home/bharrington/Projects/golang ++ GORACE= ++ GOROOT=/usr/local/golang/latest/go ++ GOTOOLDIR=/usr/local/golang/latest/go/pkg/tool/linux_amd64 ++ GO15VENDOREXPERIMENT=1 ++ CC=gcc ++ GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0' ++ CXX=g++ ++ CGO_ENABLED=1 + echo 'Building mayday...' Building mayday... + go build -o bin/mayday github.com/coreos/mayday
New behavior:
[bharrington@leviathan mayday]$ ORG_PATH="github.com/brianredbeard" bash -x ./build + ORG_PATH=github.com/brianredbeard + REPO_PATH=github.com/brianredbeard/mayday + '[' '!' -h gopath/src/github.com/brianredbeard/mayday ']' + export GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin + GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin ++ go env + eval 'GOARCH="amd64"' 'GOBIN="/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin"' 'GOEXE=""' 'GOHOSTARCH="amd64"' 'GOHOSTOS="linux"' 'GOOS="linux"' 'GOPATH="/home/bharrington/Projects/golang"' 'GORACE=""' 'GOROOT="/usr/local/golang/latest/go"' 'GOTOOLDIR="/usr/local/golang/latest/go/pkg/tool/linux_amd64"' 'GO15VENDOREXPERIMENT="1"' 'CC="gcc"' 'GOGCCFLAGS="-fPIC' -m64 -pthread '-fmessage-length=0"' 'CXX="g++"' 'CGO_ENABLED="1"' ++ GOARCH=amd64 ++ GOBIN=/home/bharrington/Projects/golang/src/github.com/brianredbeard/mayday/bin ++ GOEXE= ++ GOHOSTARCH=amd64 ++ GOHOSTOS=linux ++ GOOS=linux ++ GOPATH=/home/bharrington/Projects/golang ++ GORACE= ++ GOROOT=/usr/local/golang/latest/go ++ GOTOOLDIR=/usr/local/golang/latest/go/pkg/tool/linux_amd64 ++ GO15VENDOREXPERIMENT=1 ++ CC=gcc ++ GOGCCFLAGS='-fPIC -m64 -pthread -fmessage-length=0' ++ CXX=g++ ++ CGO_ENABLED=1 + echo 'Building mayday...' Building mayday... + go build -o bin/mayday github.com/brianredbeard/mayday
:+1: lgtm
The previous configuration of ORG_PATH and REPO_PATH did not allow them to be set in the environment. This had the limitation of not allowing for runtime collaboration of builds and tests.
Previous behavior:
New behavior: