Update to go 1.18
parent
a3f41568e0
commit
9f4aac9589
|
@ -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:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.17.6
|
1.18.3
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
run:
|
||||||
|
go: '1.18'
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- exportloopref
|
- exportloopref
|
||||||
|
|
|
@ -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"
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue