Closed nlamirault closed 2 months ago
@nlamirault could you please fix the lint error?
I don't know how to fix that:
└─ ➜ go fmt cmd/dex/serve.go
└─ ➜ make lint
golangci-lint has version 1.59.1 built with go1.22.4 from 1a55854 on 2024-06-08T22:05:49Z
WARN [config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`.
WARN [config_reader] The configuration option `linters.gci.local-prefixes` is deprecated, please use `prefix()` inside `linters.gci.sections`.
cmd/dex/serve.go:54: File is not `gofumpt`-ed (gofumpt)
var (
buildInfo = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "build_info",
Namespace: "dex",
Help: "A metric with a constant '1' value labeled by version from which Dex was built.",
},
[]string{"version", "go_version", "platform"},
)
make: *** [lint] Error 1
It should help:
make help
make fix
Overview
Add a new metric
dex_build_info
, withversion
which will be set to the Git tag version.What this PR does / why we need it
Special notes for your reviewer