Skip to content

Commit b7a974b

Browse files
authored
Remove vendor directory and clean a bit Makefile (#139)
1 parent 9c28441 commit b7a974b

File tree

2,526 files changed

+4
-764977
lines changed

Some content is hidden

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

2,526 files changed

+4
-764977
lines changed

GNUmakefile

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
TEST?=$$(go list ./... |grep -v 'vendor')
2-
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3-
WEBSITE_REPO=github.com/hashicorp/terraform-website
1+
TEST?=$$(go list ./...)
2+
GOFMT_FILES?=$$(find . -name '*.go')
43
PKG_NAME=postgresql
54

65
default: build
@@ -24,7 +23,7 @@ testacc: fmtcheck
2423

2524
vet:
2625
@echo "go vet ."
27-
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
26+
@go vet $$(go list ./...) ; if [ $$? -eq 1 ]; then \
2827
echo ""; \
2928
echo "Vet found suspicious constructs. Please check the reported constructs"; \
3029
echo "and fix them if necessary before submitting the code for review."; \
@@ -37,31 +36,5 @@ fmt:
3736
fmtcheck:
3837
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
3938

40-
errcheck:
41-
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
42-
43-
44-
test-compile:
45-
@if [ "$(TEST)" = "./..." ]; then \
46-
echo "ERROR: Set TEST to a specific package. For example,"; \
47-
echo " make test-compile TEST=./$(PKG_NAME)"; \
48-
exit 1; \
49-
fi
50-
go test -c $(TEST) $(TESTARGS)
51-
52-
website:
53-
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
54-
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
55-
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
56-
endif
57-
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
58-
59-
website-test:
60-
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
61-
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
62-
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
63-
endif
64-
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
65-
66-
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test
39+
.PHONY: build test testacc vet fmt fmtcheck
6740

scripts/errcheck.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

vendor/cloud.google.com/go/.gitignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

vendor/cloud.google.com/go/CHANGES.md

Lines changed: 0 additions & 1762 deletions
This file was deleted.

vendor/cloud.google.com/go/CODE_OF_CONDUCT.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

vendor/cloud.google.com/go/CONTRIBUTING.md

Lines changed: 0 additions & 261 deletions
This file was deleted.

0 commit comments

Comments
 (0)