1
0
mirror of https://github.com/Lusitaniae/apache_exporter.git synced 2025-04-18 15:04:01 +03:00

chore(deps): Update golang to 1.22 (#195)

Signed-off-by: william.vanhevelingen <william.vanhevelingen@acquia.com>
This commit is contained in:
William Van Hevelingen 2024-03-13 14:49:57 -07:00 committed by GitHub
parent 755abadaea
commit b1a73c1871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 6 deletions

View File

@ -10,7 +10,7 @@ jobs:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
container:
image: quay.io/prometheus/golang-builder:1.19-base
image: quay.io/prometheus/golang-builder:1.22-base
steps:
- uses: actions/checkout@v4
- uses: prometheus/promci@v0.1.0
@ -40,10 +40,11 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '<1.19'
go-version: '<1.22'
- name: Lint
uses: golangci/golangci-lint-action@v4.0.0
with:
# Keep in sync with Makefile.common
version: v1.56.2
# modified from the original as this repo still using master, insteead of main

View File

@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here,
# .circle/config.yml should also be updated.
version: 1.19
# .github/workflows/ci.yml should also be updated.
version: 1.22
# cgo: false
repository:
path: github.com/Lusitaniae/apache_exporter

View File

@ -19,7 +19,7 @@ all:: vet checkmetrics common-all
include Makefile.common
PROMETHEUS_VERSION=2.39.1
PROMETHEUS_VERSION=2.50.1
PROMTOOL ?= /tmp/prometheus-$(PROMETHEUS_VERSION).linux-amd64/promtool
.PHONY: checkmetrics

View File

@ -83,7 +83,8 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
GOLANGCI_LINT :=
GOLANGCI_LINT_OPTS ?=
GOLANGCI_LINT_VERSION ?= v1.51.1
# Keep in sync .github/workflows/ci.yaml
GOLANGCI_LINT_VERSION ?= v1.56.2
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
# windows isn't included here because of the path separator being different.
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))