mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
When using MinGW gopath uses ; as separators, if we use : it strips everything after the driver letter. EG: C:\GO_Working\ gets stripped to C and makes ``make dev` and `make`` fail
This commit is contained in:
parent
e60b3745f5
commit
0006cce41b
1 changed files with 10 additions and 1 deletions
|
|
@ -62,7 +62,16 @@ case $(uname) in
|
|||
;;
|
||||
esac
|
||||
OLDIFS=$IFS
|
||||
IFS=: MAIN_GOPATH=($GOPATH)
|
||||
IFS=:
|
||||
case $(uname) in
|
||||
MINGW*)
|
||||
IFS=";"
|
||||
;;
|
||||
MSYS*)
|
||||
IFS=";"
|
||||
;;
|
||||
esac
|
||||
MAIN_GOPATH=($GOPATH)
|
||||
IFS=$OLDIFS
|
||||
|
||||
# Copy our OS/Arch to the bin/ directory
|
||||
|
|
|
|||
Loading…
Reference in a new issue