Update to go 1.18

main
Elie CHARRA 2022-06-10 11:12:21 +02:00
parent a3f41568e0
commit 9f4aac9589
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
5 changed files with 11 additions and 9 deletions

View File

@ -32,7 +32,7 @@ jobs:
steps:
- checkout
- go/install:
version: "1.17.6"
version: "1.18.3"
- go/load-cache:
key: test_acc
- run: make install-tools
@ -63,7 +63,7 @@ jobs:
path: ./
lint:
docker:
- image: golang:1.17
- image: golang:1.18
steps:
- checkout
- run:
@ -83,7 +83,7 @@ jobs:
resource_class: large
executor:
name: go/default
tag: '1.17.6'
tag: '1.18.3'
steps:
- checkout
- go/load-cache:
@ -101,7 +101,7 @@ jobs:
release:
resource_class: large
docker:
- image: cimg/go:1.17
- image: cimg/go:1.18
steps:
- checkout
- gh/setup:
@ -196,7 +196,7 @@ jobs:
-env "LATEST_VERSION=${CIRCLE_TAG}"
security-oss:
docker:
- image: cimg/go:1.17.2
- image: cimg/go:1.18
steps:
- checkout
- snyk/scan:
@ -206,7 +206,7 @@ jobs:
organization: snyk-iac-group-seceng
security-code:
docker:
- image: cimg/go:1.17.2
- image: cimg/go:1.18.3
steps:
- checkout
- snyk/scan:

View File

@ -1 +1 @@
1.17.6
1.18.3

View File

@ -1,3 +1,5 @@
run:
go: '1.18'
linters:
enable:
- exportloopref

View File

@ -1,4 +1,4 @@
FROM golang:1.17 AS builder
FROM golang:1.18 AS builder
ARG OS="linux"
ARG ARCH="amd64"

View File

@ -57,7 +57,7 @@ clean:
.PHONY: lint
lint:
@which golangci-lint > /dev/null 2>&1 || (curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $(GOBINPATH) v1.31.0)
@which golangci-lint > /dev/null 2>&1 || (curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b $(GOBINPATH) v1.46.2)
golangci-lint run -v --timeout=10m
.PHONY: install-tools