From 8adea73c00563a3730773e9fa81da4d2ebe0c898 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Tue, 9 Jan 2024 21:06:12 +0100 Subject: [PATCH] Update build * Update Go to 1.21. * Cleanup unecessary build flags. * Update minimum Go version to 1.20. Fixes: https://github.com/prometheus/statsd_exporter/issues/531 Signed-off-by: SuperQ --- .circleci/config.yml | 2 +- .promu.yml | 3 +-- go.mod | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 81bb55e..a27bed8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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.21 jobs: test: executor: golang diff --git a/.promu.yml b/.promu.yml index 2bba2bb..0fa4964 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,11 +1,10 @@ go: # Whenever the Go version is updated here, .circle/config.yml should also # be updated. - version: 1.19 + version: 1.21 repository: path: github.com/prometheus/statsd_exporter build: - flags: -a -tags 'netgo static_build' ldflags: | -X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Revision={{.Revision}} diff --git a/go.mod b/go.mod index bfb1065..12e4d83 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/prometheus/statsd_exporter -go 1.18 +go 1.20 require ( github.com/alecthomas/kingpin/v2 v2.4.0