Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 0c80207

Browse files
committed
scripts/build.sh: fix GOPATH/bin folder breaking build
If GOPATH/bin doesn't exists the build scripts just exists, leaving the `terraform/bin` folder with only one single binary called `terraform`. Discovered while setting up a new GOPATH just for terraform.
1 parent 43231b5 commit 0c80207

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ OLDIFS=$IFS
6565
IFS=: MAIN_GOPATH=($GOPATH)
6666
IFS=$OLDIFS
6767

68+
# Create GOPATH/bin if it's doesn't exists
69+
if [ ! -d $MAIN_GOPATH/bin ]; then
70+
echo "==> Creating GOPATH/bin directory..."
71+
mkdir -p $MAIN_GOPATH/bin
72+
fi
73+
6874
# Copy our OS/Arch to the bin/ directory
6975
DEV_PLATFORM="./pkg/$(go env GOOS)_$(go env GOARCH)"
7076
for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do

0 commit comments

Comments
 (0)