From 12df8565cf9466e321527967755517e5f7c17167 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 28 Apr 2015 12:05:45 +0200 Subject: build: run build commands from the fake workspace root This ensures that compiler error messages contain the correct path. --- build/env.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/env.sh b/build/env.sh index b28ad6259..04401a3e1 100755 --- a/build/env.sh +++ b/build/env.sh @@ -24,5 +24,9 @@ GOPATH="$ethdir/go-ethereum/Godeps/_workspace:$workspace" GOBIN="$PWD/build/bin" export GOPATH GOBIN +# Run the command inside the workspace. +cd "$ethdir/go-ethereum" +PWD="$ethdir/go-ethereum" + # Launch the arguments with the configured environment. -exec $@ +exec "$@" -- cgit v1.2.3