Skip to content

Commit 022933f

Browse files
committed
Update building
* Remove unused / non-standard .go-version. * Cleanup indenting in Makefile. * Enable dependabot for subdirs. * Update golanci-lint CI. * Update go.mod version directives to match supported versions. Signed-off-by: SuperQ <[email protected]>
1 parent 1a88780 commit 022933f

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
- package-ecosystem: "gomod"
8+
 directory: "/examples/middleware"
9+
 schedule:
10+
 interval: "monthly"
11+
- package-ecosystem: "gomod"
12+
directory: "/tutorial/whatsup"
13+
schedule:
14+
interval: "monthly"

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v3
2727
- name: install Go
28-
uses: actions/setup-go@v2
28+
uses: actions/setup-go@v3
2929
with:
30-
go-version: 1.18.x
30+
go-version: 1.20.x
3131
- name: Install snmp_exporter/generator dependencies
3232
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
3333
if: github.repository == 'prometheus/snmp_exporter'
3434
- name: Lint
3535
uses: golangci/[email protected]
3636
with:
3737
args: --verbose
38-
version: v1.51.2
38+
version: v1.53.3

.go-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ test-short: deps common-test-short
2424
VERSIONS := 1.19 1.20 1.21
2525
generate-go-collector-test-files:
2626
for GO_VERSION in $(VERSIONS); do \
27-
docker run --rm -v $(PWD):/workspace -w /workspace golang:$$GO_VERSION go run prometheus/gen_go_collector_metrics_set.go; \
27+
docker run --rm -v $(PWD):/workspace -w /workspace golang:$$GO_VERSION go run prometheus/gen_go_collector_metrics_set.go; \
2828
mv -f go_collector_metrics* prometheus; \
29-
done
29+
done
3030

3131
.PHONY: fmt
3232
fmt: common-format

examples/middleware/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/jessicalins/instrumentation-practices-examples/middleware
22

3-
go 1.17
3+
go 1.19
44

55
require github.com/prometheus/client_golang v1.13.1
66

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/client_golang
22

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/beorn7/perks v1.0.1

0 commit comments

Comments
 (0)