From b1068d058a0066ce262a2ce69a28aae05460f54b Mon Sep 17 00:00:00 2001 From: SuperQ Date: Fri, 8 Jul 2022 15:24:17 +0200 Subject: [PATCH] Update build * Update Go to 1.18. * Update Go modules to 1.17 format. * Enable dependabot. * Add yamllint config. Signed-off-by: SuperQ --- .circleci/config.yml | 2 +- .github/dependabot.yml | 6 ++++++ .gitpod.yml | 2 +- .promu.yml | 2 +- .yamllint | 28 ++++++++++++++++++++++++++++ go.mod | 18 ++++++++++++++---- 6 files changed, 51 insertions(+), 7 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .yamllint diff --git a/.circleci/config.yml b/.circleci/config.yml index 7309236..3c59c80 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.17 + - image: cimg/go:1.18 jobs: test: executor: golang diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..202ae23 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "monthly" diff --git a/.gitpod.yml b/.gitpod.yml index 1b8d941..a8329c2 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -10,4 +10,4 @@ ports: onOpen: ignore image: - file: .gitpod.Dockerfile \ No newline at end of file + file: .gitpod.Dockerfile diff --git a/.promu.yml b/.promu.yml index fc08cf3..2ac7db3 100644 --- a/.promu.yml +++ b/.promu.yml @@ -1,7 +1,7 @@ go: # Whenever the Go version is updated here, .circle/config.yml should also # be updated. - version: 1.17 + version: 1.18 repository: path: github.com/prometheus/statsd_exporter build: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..3878a31 --- /dev/null +++ b/.yamllint @@ -0,0 +1,28 @@ +--- +extends: default + +rules: + braces: + max-spaces-inside: 1 + level: error + brackets: + max-spaces-inside: 1 + level: error + commas: disable + comments: disable + comments-indentation: disable + document-start: disable + indentation: + spaces: consistent + indent-sequences: consistent + key-duplicates: + ignore: | + config/testdata/section_key_dup.bad.yml + line-length: disable + truthy: + ignore: | + .github/workflows/codeql-analysis.yml + .github/workflows/funcbench.yml + .github/workflows/fuzzing.yml + .github/workflows/prombench.yml + .github/workflows/golangci-lint.yml diff --git a/go.mod b/go.mod index 3fc63e4..7c59725 100644 --- a/go.mod +++ b/go.mod @@ -1,17 +1,27 @@ module github.com/prometheus/statsd_exporter +go 1.17 + require ( - github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect github.com/go-kit/log v0.2.1 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da github.com/prometheus/client_golang v1.12.2 github.com/prometheus/client_model v0.2.0 github.com/prometheus/common v0.35.0 github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807 - golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d // indirect - google.golang.org/protobuf v1.28.0 // indirect gopkg.in/alecthomas/kingpin.v2 v2.2.6 gopkg.in/yaml.v2 v2.4.0 ) -go 1.13 +require ( + github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect + github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/cespare/xxhash/v2 v2.1.2 // indirect + github.com/go-logfmt/logfmt v0.5.1 // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/prometheus/procfs v0.7.3 // indirect + golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d // indirect + google.golang.org/protobuf v1.28.0 // indirect +)