Skip to content

Commit

Permalink
Merge pull request #10 from lacework/afiune/go-deps
Browse files Browse the repository at this point in the history
chore(Makefile): directives for Go pkg dependencies
  • Loading branch information
afiune authored Mar 25, 2020
2 parents a9aa119 + fd2a3f5 commit 27600b9
Show file tree
Hide file tree
Showing 12 changed files with 592 additions and 141 deletions.
13 changes: 12 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ WEBSITE_REPO=github.com/hashicorp/terraform-website
PKG_NAME=lacework
DIR=~/.terraform.d/plugins
GO_CLIENT_VERSION=master
export GOFLAGS=-mod=vendor
export GOPRIVATE=github.com/lacework/go-sdk

default: build

deps:
ifdef UPDATE_DEP
@go get -u "$(UPDATE_DEP)"
endif
@go mod vendor

alldeps:
@go get -u
@go mod vendor

build: fmtcheck
go install

Expand Down Expand Up @@ -43,7 +55,6 @@ fmtcheck:
errcheck:
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"


test-compile:
@if [ "$(TEST)" = "./..." ]; then \
echo "ERROR: Set TEST to a specific package. For example,"; \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.14

require (
github.com/hashicorp/terraform-plugin-sdk v1.8.0
github.com/lacework/go-sdk v0.0.0-20200318002413-5f027eab9aa4
github.com/lacework/go-sdk v0.0.0-20200325152128-6358ff2754bd
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/lacework/go-sdk v0.0.0-20200318002413-5f027eab9aa4 h1:AlKxXh+5H3b58VVEk9ltSagzkgrdVPavO3x0zKhHfQY=
github.com/lacework/go-sdk v0.0.0-20200318002413-5f027eab9aa4/go.mod h1:E8NPFz+v7qpyhN/0xAAjywNRB4lMfQNHSE5pzYTVguY=
github.com/lacework/go-sdk v0.0.0-20200325152128-6358ff2754bd h1:rltyOpmfwPxsuxJImCxffvODgV9XgTdziWajXQM3nnU=
github.com/lacework/go-sdk v0.0.0-20200325152128-6358ff2754bd/go.mod h1:E8NPFz+v7qpyhN/0xAAjywNRB4lMfQNHSE5pzYTVguY=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.1 h1:G1f5SKeVxmagw/IyvzvtZE4Gybcc4Tr1tf7I8z0XgOg=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
Expand Down
4 changes: 2 additions & 2 deletions vendor/github.com/lacework/go-sdk/api/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions vendor/github.com/lacework/go-sdk/api/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion vendor/github.com/lacework/go-sdk/api/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/lacework/go-sdk/api/http.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27600b9

Please sign in to comment.