Skip to content

Commit

Permalink
build: rearrange go path order on windows
Browse files Browse the repository at this point in the history
If PATH comes first, an older version of Go is used that cannot install
dependencies that use features of newer versions of Go, which we just
installed.
  • Loading branch information
shoenig committed Jun 10, 2022
1 parent 0b9fc17 commit c1f5783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,21 @@ jobs:
- run:
name: Install golang dependencies
command: |
export PATH=$PATH:/c/go/bin:/c/gopath/bin
export PATH=/c/go/bin:/c/gopath/bin:$PATH
make deps
- run:
name: Pre-download docker test image
command: docker pull docker.mirror.hashicorp.services/hashicorpdev/busybox-windows:server2016-0.1
- run:
name: Build nomad
command: |
export PATH=$PATH:/c/go/bin:/c/gopath/bin
export PATH=/c/go/bin:/c/gopath/bin:$PATH
go build -o $GOBIN\nomad.exe
- run:
name: Run tests with gotestsum
command: |
# Only test docker driver tests for now
export PATH=$PATH:/c/go/bin:/c/gopath/bin
export PATH=/c/go/bin:/c/gopath/bin:$PATH
gotestsum --format=short-verbose \
--junitfile $GOTESTSUM_PATH/results.xml \
github.com/hashicorp/nomad/drivers/docker \
Expand Down

0 comments on commit c1f5783

Please sign in to comment.