Skip to content

Commit

Permalink
Update Go build
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
SuperQ committed Jan 15, 2024
1 parent 688b9a5 commit 98e7498
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ executors:
# Whenever the Go version is updated here, .promu.yml should also be updated.
golang:
docker:
- image: cimg/go:1.20
- image: cimg/go:1.21
jobs:
test:
executor: golang
Expand All @@ -23,7 +23,7 @@ jobs:
# Whenever the Go version is updated here, .travis.yml and .promu.yml
# should also be updated.
environment:
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.20-base
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.21-base
steps:
- checkout
- run:
Expand Down
6 changes: 2 additions & 4 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
go:
# Whenever the Go version is updated here, .travis.yml and
# .circle/config.yml should also be updated.
version: 1.20
# Whenever the Go version is updated here, .circle/config.yml should also be updated.
version: 1.21
repository:
path: github.com/prometheus/blackbox_exporter
build:
flags: -a -tags netgo
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/prometheus/blackbox_exporter

go 1.19
go 1.20

require (
github.com/alecthomas/kingpin/v2 v2.4.0
Expand Down

0 comments on commit 98e7498

Please sign in to comment.