From ce2dbb6577368a3aef90d4e2b61bff42d8ea5488 Mon Sep 17 00:00:00 2001 From: Joseph Sirianni Date: Wed, 14 Apr 2021 14:23:48 -0400 Subject: [PATCH] upgrade to go 1.16 (#274) * upgrade to go 1.16 * add '@latest' because go install will attempt to install inside the working module if a version is not defined * use go 1.16 for all builds / tests --- .circleci/config.yml | 12 ++++++------ CHANGELOG.md | 3 +++ Makefile | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72b57d5d5..e1c1352a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,7 +10,7 @@ orbs: executors: golang: docker: - - image: circleci/golang:1.14 + - image: circleci/golang:1.16 mac: macos: xcode: 11.4.1 @@ -107,10 +107,10 @@ jobs: - checkout - run: name: Download golang - command: curl -SL https://dl.google.com/go/go1.14.4.darwin-amd64.tar.gz -O + command: curl -SL https://golang.org/dl/go1.16.3.darwin-amd64.tar.gz -O - run: name: Extract golang - command: tar -C ~ -xzf go1.14.4.darwin-amd64.tar.gz + command: tar -C ~ -xzf go1.16.3.darwin-amd64.tar.gz - run: name: Add Golang to Path command: echo 'export PATH=~/go/bin:$PATH' >> $BASH_ENV @@ -126,7 +126,7 @@ jobs: - run: name: Upgrade Golang shell: powershell.exe - command: choco upgrade golang --version=1.14 + command: choco upgrade golang --version=1.16 - run: name: Install GCC shell: powershell.exe @@ -168,7 +168,7 @@ jobs: default: 128GB docker: - - image: circleci/golang:1.14 + - image: circleci/golang:1.16 resource_class: small steps: @@ -276,7 +276,7 @@ jobs: report-benchmark: docker: - - image: circleci/golang:1.14 + - image: circleci/golang:1.16 resource_class: small steps: - checkout diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e1885890..91af8bea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added float64 to Severity parser's supported types [PR 267](https://github.com/observIQ/stanza/issues/267) +### Changed +- Switched to Go 1.16, from Go 1.14 + ## [0.13.18] - 2021-04-02 ### Changed diff --git a/Makefile b/Makefile index 26f33664d..b13f79b20 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ ALL_MODULES := $(shell find . -type f -name "go.mod" -exec dirname {} \; | sort .PHONY: install-tools install-tools: - go install github.com/golangci/golangci-lint/cmd/golangci-lint - go install github.com/vektra/mockery/cmd/mockery + go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + go install github.com/vektra/mockery/cmd/mockery@latest .PHONY: test test: vet test-only