From f704c5bb1140081fa59f7ee0b17072577e66f958 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Mon, 15 May 2023 15:43:06 +0200 Subject: [PATCH] Update build * Update Go to 1.20. * Update minimum Go version to 1.19. * Update golangci-lint. Signed-off-by: SuperQ --- .circleci/config.yml | 2 +- .github/workflows/golangci-lint.yml | 8 ++++---- .promu.yml | 2 +- go.mod | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c8e2e14..7ee9e76 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ executors: # 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 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 6034bcb..100cf93 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -18,13 +18,13 @@ jobs: - 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 diff --git a/.promu.yml b/.promu.yml index 9006dce..e650463 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,7 +1,7 @@ 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: diff --git a/go.mod b/go.mod index 5cb2de9..5084be5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/prometheus/blackbox_exporter -go 1.18 +go 1.19 require ( github.com/alecthomas/kingpin/v2 v2.3.2 -- 2.25.1