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

View File

@ -1 +1 @@
1.17.6 1.18.3

View File

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

View File

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

View File

@ -57,7 +57,7 @@ clean:
.PHONY: lint .PHONY: lint
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 golangci-lint run -v --timeout=10m
.PHONY: install-tools .PHONY: install-tools