* Update Go to 1.20.
* Update minimum Go version to 1.19.
* Update golangci-lint.
Signed-off-by: SuperQ <superq@gmail.com>
# Whenever the Go version is updated here, .promu.yml should also be updated.
golang:
docker:
- - image: cimg/go:1.19
+ - image: cimg/go:1.20
jobs:
test:
executor: golang
- name: Checkout repository
uses: actions/checkout@v3
- name: install Go
- uses: actions/setup-go@v2
+ uses: actions/setup-go@v3
with:
- go-version: 1.18.x
+ go-version: 1.20.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
- uses: golangci/golangci-lint-action@v3.2.0
+ uses: golangci/golangci-lint-action@v3.4.0
with:
- version: v1.45.2
+ version: v1.51.2
go:
# Whenever the Go version is updated here, .travis.yml and
# .circle/config.yml should also be updated.
- version: 1.19
+ version: 1.20
repository:
path: github.com/prometheus/blackbox_exporter
build:
module github.com/prometheus/blackbox_exporter
-go 1.18
+go 1.19
require (
github.com/alecthomas/kingpin/v2 v2.3.2