mirror of
https://github.com/prometheus-community/json_exporter
synced 2025-05-02 07:48:55 +00:00
Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
This commit is contained in:
parent
c487740bb8
commit
4a589582d9
2
.github/workflows/golangci-lint.yml
vendored
2
.github/workflows/golangci-lint.yml
vendored
@ -7,6 +7,7 @@ on:
|
|||||||
- "**.go"
|
- "**.go"
|
||||||
- "scripts/errcheck_excludes.txt"
|
- "scripts/errcheck_excludes.txt"
|
||||||
- ".github/workflows/golangci-lint.yml"
|
- ".github/workflows/golangci-lint.yml"
|
||||||
|
- ".golangci.yml"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "go.sum"
|
- "go.sum"
|
||||||
@ -14,6 +15,7 @@ on:
|
|||||||
- "**.go"
|
- "**.go"
|
||||||
- "scripts/errcheck_excludes.txt"
|
- "scripts/errcheck_excludes.txt"
|
||||||
- ".github/workflows/golangci-lint.yml"
|
- ".github/workflows/golangci-lint.yml"
|
||||||
|
- ".golangci.yml"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
|
@ -160,7 +160,7 @@ endif
|
|||||||
update-go-deps:
|
update-go-deps:
|
||||||
@echo ">> updating Go dependencies"
|
@echo ">> updating Go dependencies"
|
||||||
@for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
|
@for m in $$($(GO) list -mod=readonly -m -f '{{ if and (not .Indirect) (not .Main)}}{{.Path}}{{end}}' all); do \
|
||||||
$(GO) get $$m; \
|
$(GO) get -d $$m; \
|
||||||
done
|
done
|
||||||
GO111MODULE=$(GO111MODULE) $(GO) mod tidy
|
GO111MODULE=$(GO111MODULE) $(GO) mod tidy
|
||||||
ifneq (,$(wildcard vendor))
|
ifneq (,$(wildcard vendor))
|
||||||
|
Loading…
Reference in New Issue
Block a user