Skip to content

Commit 1256aa9

Browse files
author
Sean Sain
committed
fix merge conflict
2 parents 6737433 + a4d0b8a commit 1256aa9

File tree

1,178 files changed

+153281
-49072
lines changed

Some content is hidden

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

1,178 files changed

+153281
-49072
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ services:
55
language: go
66
go:
77
- "1.13.x"
8-
9-
env:
10-
- GO111MODULE=on
118

129
install:
1310
# This script is used by the Travis build to install a cookie for
@@ -24,3 +21,6 @@ matrix:
2421
fast_finish: true
2522
allow_failures:
2623
- go: tip
24+
25+
env:
26+
- GOFLAGS=-mod=vendor GO111MODULE=on

GNUmakefile

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
TEST?=$$(go list ./... |grep -v 'vendor')
2+
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3+
WEBSITE_REPO=github.com/hashicorp/terraform-website
4+
PKG_NAME=sumologic
5+
6+
default: build
7+
8+
tools:
9+
GO111MODULE=off go get -u github.com/client9/misspell/cmd/misspell
10+
GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
11+
12+
build: fmtcheck
13+
go install
14+
15+
errcheck:
16+
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
17+
18+
fmt:
19+
@echo "==> Fixing source code with gofmt..."
20+
gofmt -w $(GOFMT_FILES)
21+
22+
fmtcheck:
23+
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
24+
25+
lint:
26+
@echo "==> Checking source code against linters..."
27+
golangci-lint run ./...
28+
29+
test: fmtcheck
30+
go test -i $(TEST) || exit 1
31+
echo $(TEST) | \
32+
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
33+
34+
testacc: fmtcheck
35+
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
36+
37+
test-compile:
38+
@if [ "$(TEST)" = "./..." ]; then \
39+
echo "ERROR: Set TEST to a specific package. For example,"; \
40+
echo " make test-compile TEST=./$(PKG_NAME)"; \
41+
exit 1; \
42+
fi
43+
go test -c $(TEST) $(TESTARGS)
44+
45+
website:
46+
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
47+
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
48+
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
49+
endif
50+
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
51+
52+
website-lint:
53+
@echo "==> Checking website against linters..."
54+
@misspell -error -source=text website/
55+
56+
website-test:
57+
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
58+
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
59+
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
60+
endif
61+
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
62+
63+
.PHONY: build test testacc vet fmt fmtcheck errcheck lint tools test-compile website website-lint website-test

Makefile

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

go.mod

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,34 @@ module github.com/SumoLogic/sumologic-terraform-provider
33
go 1.12
44

55
require (
6+
cloud.google.com/go/pubsub v1.2.0 // indirect
7+
github.com/aws/aws-sdk-go v1.28.14 // indirect
8+
github.com/fatih/color v1.9.0 // indirect
69
github.com/go-errors/errors v1.0.1
7-
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce // indirect
8-
github.com/hashicorp/terraform-plugin-sdk v1.0.0
10+
github.com/go-test/deep v1.0.5 // indirect
11+
github.com/golang/mock v1.4.0 // indirect
12+
github.com/hashicorp/go-getter v1.4.1 // indirect
13+
github.com/hashicorp/go-hclog v0.12.0 // indirect
14+
github.com/hashicorp/go-uuid v1.0.2 // indirect
15+
github.com/hashicorp/hcl v1.0.0 // indirect
16+
github.com/hashicorp/hcl/v2 v2.3.0 // indirect
17+
github.com/hashicorp/terraform-config-inspect v0.0.0-20200210163047-f7d8399e1194 // indirect
18+
github.com/hashicorp/terraform-plugin-sdk v1.6.0
19+
github.com/hashicorp/terraform-svchost v0.0.0-20191119180714-d2e4933b9136 // indirect
20+
github.com/hashicorp/yamux v0.0.0-20190923154419-df201c70410d // indirect
21+
github.com/kr/pretty v0.2.0 // indirect
22+
github.com/mattn/go-isatty v0.0.12 // indirect
23+
github.com/oklog/run v1.1.0 // indirect
24+
github.com/posener/complete v1.2.3 // indirect
25+
github.com/sergi/go-diff v1.1.0 // indirect
26+
github.com/ulikunitz/xz v0.5.6 // indirect
27+
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
28+
github.com/zclconf/go-cty v1.2.1 // indirect
29+
golang.org/x/crypto v0.0.0-20200210222208-86ce3cb69678 // indirect
30+
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd // indirect
31+
golang.org/x/tools v0.0.0-20200210223759-b0390335f4a1 // indirect
32+
google.golang.org/api v0.17.0 // indirect
33+
google.golang.org/genproto v0.0.0-20200210034751-acff78025515 // indirect
34+
google.golang.org/grpc v1.27.1 // indirect
35+
gopkg.in/yaml.v2 v2.2.8 // indirect
936
)

0 commit comments

Comments
 (0)