File tree Expand file tree Collapse file tree 5 files changed +991
-569
lines changed
Expand file tree Collapse file tree 5 files changed +991
-569
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,13 @@ jobs:
1818 - name : Checkout repository
1919 uses : actions/checkout@v3
2020 - name : install Go
21- uses : actions/setup-go@v2
21+ uses : actions/setup-go@v3
2222 with :
23- go-version : 1.18 .x
23+ go-version : 1.20 .x
2424 - name : Install snmp_exporter/generator dependencies
2525 run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
2626 if : github.repository == 'prometheus/snmp_exporter'
2727 - name : Lint
28- uses : golangci/golangci-lint-action@v3.2 .0
28+ uses : golangci/golangci-lint-action@v3.4 .0
2929 with :
30- version : v1.45 .2
30+ version : v1.51 .2
Original file line number Diff line number Diff line change 1818GO_FILE := go/metrics.pb.go
1919PROTO_FILE := io/prometheus/client/metrics.proto
2020
21- # Need to be on a previous version that doesn't cause the updated WKT go_package values to be added.
22- PROTOC_VERSION := 3.13.0
23- # This has been around for a while.
24- PROTOC_GEN_GO_VERSION := v1.3.5
21+ PROTOC_VERSION := 3.20.3
22+ PROTOC_GEN_GO_VERSION := v1.30.0
2523
2624# There are no protobuf releases for Darwin ARM so for
2725# now we always use the x86_64 release through Rosetta.
@@ -58,7 +56,7 @@ $(PROTOC_GEN_GO):
5856 @rm -f $(PROTOC_GEN_GO_BIN )
5957 @mkdir -p $(dir $(PROTOC_GEN_GO_BIN ) )
6058 $(eval PROTOC_GEN_GO_TMP := $(shell mktemp -d) )
61- cd $(PROTOC_GEN_GO_TMP ) ; GOBIN=$(PWD ) /$(dir $(PROTOC_GEN_GO_BIN ) ) go get github.com/ golang/protobuf/protoc-gen-go@$(PROTOC_GEN_GO_VERSION )
59+ cd $(PROTOC_GEN_GO_TMP ) ; GOBIN=$(PWD ) /$(dir $(PROTOC_GEN_GO_BIN ) ) go install google. golang.org /protobuf/cmd /protoc-gen-go@$(PROTOC_GEN_GO_VERSION )
6260 @rm -rf $(PROTOC_GEN_GO_TMP )
6361 @rm -rf $(dir $(PROTOC_GEN_GO ) )
6462 @mkdir -p $(dir $(PROTOC_GEN_GO ) )
Original file line number Diff line number Diff line change 11module github.com/prometheus/client_model
22
3- go 1.9
3+ go 1.18
44
5- require github.com/ golang/protobuf v1.3.5
5+ require google. golang.org /protobuf v1.30.0
Original file line number Diff line number Diff line change 1- github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls =
2- github.com/golang/protobuf v1.3.5 /go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk =
1+ github.com/golang/protobuf v1.5.0 /go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk =
2+ github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU =
3+ github.com/google/go-cmp v0.5.5 /go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE =
4+ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4 =
5+ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 /go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0 =
6+ google.golang.org/protobuf v1.26.0-rc.1 /go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw =
7+ google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng =
8+ google.golang.org/protobuf v1.30.0 /go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I =
You can’t perform that action at this time.
0 commit comments