Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add a vendoring check
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
  • Loading branch information
Sylvain Rabot committed Mar 6, 2019
commit f3289881d13af019af4410603382353bd175ae23
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
echo $GOOGLE_APPLICATION_CREDENTIALS_CONTENT > /go/src/github.com/improbable-eng/thanos/circleci-gcs-creds.json
echo "Awesome! GCS integration tests are enabled."
fi
- run: make deps
- run: make vendor
- run: make check-vendor
- run: make errcheck
- run: make check-docs
- run: make format
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,19 @@ vet:
@echo ">> vetting code"
@go vet ./...

# non-phony targets

# vendor
.PHONY: vendor
vendor:
@GO111MODULE=$(GO111MODULE) go mod tidy
@GO111MODULE=$(GO111MODULE) go mod vendor

.PHONY: check-vendor
check-vendor:
@GO111MODULE=$(GO111MODULE) go mod tidy
@git diff --exit-code go.mod go.sum vendor/

# non-phony targets

# tooling deps. TODO(bwplotka): Pin them all to certain version!

$(EMBEDMD):
Expand Down