From c1f57833c0646f77bc8e7bfd9ac776afd3656c5f Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Fri, 10 Jun 2022 07:41:12 -0500 Subject: [PATCH] build: rearrange go path order on windows 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. --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21bff6367..2c4424161 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -179,7 +179,7 @@ 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 @@ -187,13 +187,13 @@ jobs: - 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 \