Skip to content

Commit 98e7498

Browse files
committed
Update Go build
* Update Go to 1.21. * Update minimum Go version to 1.20. * Remove obsolete extra build flgas. Fixes: #1005 Signed-off-by: SuperQ <[email protected]>
1 parent 688b9a5 commit 98e7498

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ executors:
55
# Whenever the Go version is updated here, .promu.yml should also be updated.
66
golang:
77
docker:
8-
- image: cimg/go:1.20
8+
- image: cimg/go:1.21
99
jobs:
1010
test:
1111
executor: golang
@@ -23,7 +23,7 @@ jobs:
2323
# Whenever the Go version is updated here, .travis.yml and .promu.yml
2424
# should also be updated.
2525
environment:
26-
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.20-base
26+
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.21-base
2727
steps:
2828
- checkout
2929
- run:

.promu.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
go:
2-
# Whenever the Go version is updated here, .travis.yml and
3-
# .circle/config.yml should also be updated.
4-
version: 1.20
2+
# Whenever the Go version is updated here, .circle/config.yml should also be updated.
3+
version: 1.21
54
repository:
65
path: github.com/prometheus/blackbox_exporter
76
build:
8-
flags: -a -tags netgo
97
ldflags: |
108
-X github.com/prometheus/common/version.Version={{.Version}}
119
-X github.com/prometheus/common/version.Revision={{.Revision}}

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/prometheus/blackbox_exporter
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/alecthomas/kingpin/v2 v2.4.0

0 commit comments

Comments
 (0)