Skip to content

Commit 9e56a69

Browse files
authored
Update Go build (#1184)
* 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 9e56a69

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.circleci/config.yml

Lines changed: 3 additions & 4 deletions
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
@@ -20,10 +20,9 @@ jobs:
2020
test-ipv6:
2121
machine: true
2222
working_directory: /home/circleci/.go_workspace/src/github.com/prometheus/blackbox_exporter
23-
# Whenever the Go version is updated here, .travis.yml and .promu.yml
24-
# should also be updated.
23+
# Whenever the Go version is updated here, .promu.yml should also be updated.
2524
environment:
26-
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.20-base
25+
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.21-base
2726
steps:
2827
- checkout
2928
- run:

.promu.yml

Lines changed: 2 additions & 4 deletions
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}}

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Blackbox exporter [![Build Status](https://travis-ci.org/prometheus/blackbox_exporter.svg)][travis]
1+
# Blackbox exporter
22

33
[![CircleCI](https://circleci.com/gh/prometheus/blackbox_exporter/tree/master.svg?style=shield)][circleci]
44
[![Docker Repository on Quay](https://quay.io/repository/prometheus/blackbox-exporter/status)][quay]
@@ -161,5 +161,4 @@ The ICMP probe requires elevated privileges to function:
161161

162162
[circleci]: https://circleci.com/gh/prometheus/blackbox_exporter
163163
[hub]: https://hub.docker.com/r/prom/blackbox-exporter/
164-
[travis]: https://travis-ci.org/prometheus/blackbox_exporter
165164
[quay]: https://quay.io/repository/prometheus/blackbox-exporter

go.mod

Lines changed: 1 addition & 1 deletion
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)