Skip to content

Commit f1caeee

Browse files
authored
Merge pull request #31 from percona/PMM-2574_dep
PMM-2574: `dep`
2 parents cad76cb + aae1dc9 commit f1caeee

File tree

299 files changed

+34401
-28866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+34401
-28866
lines changed

Gopkg.lock

+149
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[prune]
2+
go-tests = true
3+
non-go = true
4+
unused-packages = true
5+
6+
[[override]]
7+
name = "github.com/prometheus/common"
8+
# Version before introducing kingpin.
9+
# https://github.com/prometheus/common/pull/96
10+
revision = "185c63bfc5a8c7a703687edb52940c895c818cb5"

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DOCKER_IMAGE_NAME ?= mysqld-exporter
2222
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
2323

2424

25-
all: format build test-short
25+
all: verify-vendor format build test-short
2626

2727
style:
2828
@echo ">> checking code style"
@@ -36,6 +36,13 @@ test:
3636
@echo ">> running tests"
3737
@$(GO) test -race $(pkgs)
3838

39+
verify-vendor:
40+
@echo ">> verify that vendor/ is in sync with code and Gopkg.*"
41+
curl https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -L -o ~/dep && chmod +x ~/dep
42+
rm -fr vendor/
43+
~/dep ensure -v -vendor-only
44+
git diff --exit-code
45+
3946
format:
4047
@echo ">> formatting code"
4148
@$(GO) fmt $(pkgs)

vendor/github.com/Sirupsen/logrus/CHANGELOG.md

-118
This file was deleted.

0 commit comments

Comments
 (0)