You've already forked nginx_exporter
mirror of
https://github.com/nginxinc/nginx-prometheus-exporter.git
synced 2025-08-08 05:02:04 +03:00
cherry-pick: golangci-lint version and action update (#1046)
* Update golangci/golangci-lint-action action to v7 | datasource | package | from | to | | ----------- | ----------------------------- | ------ | ------ | | github-tags | golangci/golangci-lint-action | v6.5.2 | v7.0.0 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Update dependency golangci/golangci-lint to v2 | datasource | package | from | to | | ----------- | ---------------------- | ------- | ------ | | github-tags | golangci/golangci-lint | v1.64.8 | v2.1.5 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * golangci-lint migrate result * Fix linting error - remove embedded field * Update the make target for lint --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
@@ -130,7 +130,7 @@ func TestAddMissingEnvironmentFlags(t *testing.T) {
|
||||
// instead of checking the envar of each matching flag name
|
||||
for k, v := range expectedMatches {
|
||||
matched := false
|
||||
for _, f := range kingpin.CommandLine.Model().FlagGroupModel.Flags {
|
||||
for _, f := range kingpin.CommandLine.Model().Flags {
|
||||
if f.Name == k && f.Envar == v {
|
||||
matched = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user