Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 8ac634f

Browse files
committed
Fix Xcode_install_go script
1 parent 66bef48 commit 8ac634f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.circleci/xcode_install_go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ set -o errexit
99
set -o pipefail
1010

1111
PROJECT_RELATIVE_PATH=src/github.com/codeclimate/test-reporter
12-
13-
# Install go
12+
13+
# Install goSDK
14+
mkdir ~/gosdk && cd "$_"
15+
echo 'export PATH=$PATH:$HOME/gosdk/go/bin' >> "$BASH_ENV"
16+
echo 'export GOROOT=$HOME/gosdk/go' >> "$BASH_ENV"
1417
curl -O https://dl.google.com/go/go1.15.darwin-amd64.tar.gz
1518
tar -xzf go1.15.darwin-amd64.tar.gz
16-
echo 'export PATH=$PATH:$PWD/go/bin' >> "$BASH_ENV"
1719

18-
# Set go path
19-
mkdir -p ~/gopath/${PROJECT_RELATIVE_PATH}
20-
echo 'export GOPATH=$HOME/gopath' >> "$BASH_ENV"
20+
# Set go path - workspace root
21+
mkdir -p ~/projects/go/${PROJECT_RELATIVE_PATH} && cd "$_"
22+
echo 'export GOPATH=$HOME/projects/go' >> "$BASH_ENV"
2123
. "$BASH_ENV"
22-
cd $GOPATH/${PROJECT_RELATIVE_PATH}
2324
cp -r ~/project/ $GOPATH/${PROJECT_RELATIVE_PATH}

0 commit comments

Comments
 (0)