Skip to content

Commit 7b14bb0

Browse files
committed
Upgrade to Go 1.21
and sync Makefile.common from prometheus/prometheus. Signed-off-by: Matthias Rampke <[email protected]>
1 parent 3b9b809 commit 7b14bb0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
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.19
8+
- image: cimg/go:1.21
99
jobs:
1010
test:
1111
executor: golang

.promu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .travis.yml and
33
# .circle/config.yml should also be updated.
4-
version: 1.19
4+
version: 1.21
55
repository:
66
path: github.com/prometheus/graphite_exporter
77
build:

Makefile.common

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ endif
4949
GOTEST := $(GO) test
5050
GOTEST_DIR :=
5151
ifneq ($(CIRCLE_JOB),)
52-
ifneq ($(shell which gotestsum),)
52+
ifneq ($(shell command -v gotestsum > /dev/null),)
5353
GOTEST_DIR := test-results
5454
GOTEST := gotestsum --junitfile $(GOTEST_DIR)/unit-tests.xml --
5555
endif
5656
endif
5757

58-
PROMU_VERSION ?= 0.14.0
58+
PROMU_VERSION ?= 0.15.0
5959
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060

6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v1.51.2
64+
GOLANGCI_LINT_VERSION ?= v1.54.2
6565
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
6666
# windows isn't included here because of the path separator being different.
6767
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
@@ -178,7 +178,7 @@ endif
178178
.PHONY: common-yamllint
179179
common-yamllint:
180180
@echo ">> running yamllint on all YAML files in the repository"
181-
ifeq (, $(shell which yamllint))
181+
ifeq (, $(shell command -v yamllint > /dev/null))
182182
@echo "yamllint not installed so skipping"
183183
else
184184
yamllint .

0 commit comments

Comments
 (0)