Skip to content

Commit

Permalink
ci: bump MSV of go to 1.15.13 (#325)
Browse files Browse the repository at this point in the history
9e42df5 introduced an `Insecure` flag for the http getter and in its error
reporting relied on the `url.Redacted()` method introduced in golang 1.15
(See https://golang.org/doc/go1.15). This breaks CI, but golang 1.14 is out of
support so our minimum supported version of go should now be on the 1.15.x
series.
  • Loading branch information
tgross authored Jun 17, 2021
1 parent 27ae8b0 commit af95113
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ commands:
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
echo $PACKAGE_NAMES
<< parameters.cmd >> --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -race -vet=<< parameters.govet >> -coverprofile=<< parameters.platform >>_cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
jobs:
linux-tests:
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:<< parameters.go-version >>
parameters:
go-version:
type: string
environment:
environment:
<<: *ENVIRONMENT
parallelism: 4
steps:
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
path: *TEST_RESULTS_PATH

windows-tests:
executor:
executor:
name: win/default
shell: bash --login -eo pipefail
environment:
Expand All @@ -96,12 +96,12 @@ jobs:
type: string
gotestsum-version:
type: string
steps:
steps:
- run: git config --global core.autocrlf false
- checkout
- attach_workspace:
at: .
- run:
- run:
name: Setup (remove pre-installed go)
command: |
rm -rf "c:\Go"
Expand All @@ -112,16 +112,16 @@ jobs:
- win-golang-<< parameters.go-version >>-cache-v1
- win-gomod-cache-{{ checksum "go.mod" }}-v1

- run:
- run:
name: Install go version << parameters.go-version >>
command: |
command: |
if [ ! -d "c:\go" ]; then
echo "Cache not found, installing new version of go"
curl --fail --location https://dl.google.com/go/go<< parameters.go-version >>.windows-amd64.zip --output go.zip
unzip go.zip -d "/c"
fi
- run:
- run:
command: go mod download

- save_cache:
Expand Down Expand Up @@ -165,12 +165,12 @@ workflows:
context: go-getter
matrix:
parameters:
go-version: ["1.14.1"]
go-version: ["1.15.13"]
name: linux-test-go-<< matrix.go-version >>
- windows-tests:
context: go-getter
matrix:
parameters:
go-version: ["1.14.1"]
go-version: ["1.15.13"]
gotestsum-version: ["0.4.1"]
name: win-test-go-<< matrix.go-version >>

0 comments on commit af95113

Please sign in to comment.