Update build
authorSuperQ <superq@gmail.com>
Mon, 15 May 2023 13:43:06 +0000 (15:43 +0200)
committerSuperQ <superq@gmail.com>
Mon, 15 May 2023 13:43:06 +0000 (15:43 +0200)
* Update Go to 1.20.
* Update minimum Go version to 1.19.
* Update golangci-lint.

Signed-off-by: SuperQ <superq@gmail.com>
.circleci/config.yml
.github/workflows/golangci-lint.yml
.promu.yml
go.mod

index c8e2e143078e4cc6f2eda59e8d985f38ca3c9a50..7ee9e763e0fd10de8fd5e4a1e5d967ada7c34350 100644 (file)
@@ -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
index 6034bcbf8b9028357d273579214045db6836c11f..100cf9329297531e3bee1d7c162192d90820cece 100644 (file)
@@ -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
index 9006dce7fdfae1d0bff210d89f3541e15c031236..e65046329511bf1a204a9d6a708e7ba0310771a9 100644 (file)
@@ -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 5cb2de9ff01edea1d121b804c3f3b1c802e152f4..5084be54d6c7b9ab0604b029b65eaffa0fcd98bd 100644 (file)
--- 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