Skip to content

Commit

Permalink
Update Go (#828)
Browse files Browse the repository at this point in the history
* Update Go to 1.21.
* Update minimum Go to 1.20.
* Remove obsolete Go flag overrides.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Dec 4, 2023
1 parent af205b4 commit 763c5f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ executors:
# This must match .promu.yml.
golang:
docker:
- image: cimg/go:1.20
- image: cimg/go:1.21
jobs:
test:
executor: golang
Expand Down
3 changes: 1 addition & 2 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
go:
# This must match .circle/config.yml.
version: 1.20
version: 1.21
repository:
path: github.com/prometheus-community/elasticsearch_exporter
build:
binaries:
- name: elasticsearch_exporter
flags: -a -tags netgo
ldflags: |
-s
-X github.com/prometheus/common/version.Version={{.Version}}
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-community/elasticsearch_exporter

go 1.19
go 1.20

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

0 comments on commit 763c5f8

Please sign in to comment.