Skip to content

Commit

Permalink
Merge pull request #12 from chrsm/fix/correct_gobin
Browse files Browse the repository at this point in the history
fixes incorrect usage of $GOBIN
  • Loading branch information
Pablo Astigarraga committed Jun 1, 2014
2 parents fe5890b + 4daad4f commit ff7c0f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/gvp
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ case "$1" in
export GVP_OLD_GOPATH GVP_OLD_GOBIN PATH

GVP_NAME=$(pwd | sed -E "s/^.*\/(.*)$/\\1/")
GOBIN="$GVP_DIR/bin":$GOBIN
GOPATH=$GVP_DIR:$PWD
PATH="$GVP_DIR/bin":$PATH
GOBIN="$GVP_DIR/bin"
GOPATH="$GVP_DIR:$PWD"
PATH="$GOBIN:$PATH"

export GOBIN GOPATH GVP_NAME PATH
echo ">> Local GOPATH set."
Expand Down
2 changes: 1 addition & 1 deletion test/init_in_and_out_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ORIGINAL_PATH=$PATH
source $GVP in

assert "echo $GOPATH" "$PWD/.godeps:$PWD"
assert "echo $GOBIN" "$PWD/.godeps/bin:$ORIGINAL_GOBIN"
assert "echo $GOBIN" "$PWD/.godeps/bin"
assert "echo $PATH" "$PWD/.godeps/bin:$ORIGINAL_PATH"


Expand Down

0 comments on commit ff7c0f6

Please sign in to comment.