@@ -19,10 +19,10 @@ PACKAGENAME?=lacework-cli
1919CLINAME? =lacework
2020# Honeycomb variables
2121HONEYDATASET? =lacework-cli-dev
22- GO_LDFLAGS ="-X github.com/lacework/go-sdk/cli/cmd.Version=$(shell cat VERSION) \
23- -X github.com/lacework/go-sdk/cli/cmd.GitSHA=$(shell git rev-parse HEAD) \
24- -X github.com/lacework/go-sdk/cli/cmd.HoneyDataset=$(HONEYDATASET ) \
25- -X github.com/lacework/go-sdk/cli/cmd.BuildTime=$(shell date +% Y% m% d% H% M% S) "
22+ GO_LDFLAGS ="-X github.com/lacework/go-sdk/v2/ cli/cmd.Version=$(shell cat VERSION) \
23+ -X github.com/lacework/go-sdk/v2/ cli/cmd.GitSHA=$(shell git rev-parse HEAD) \
24+ -X github.com/lacework/go-sdk/v2/ cli/cmd.HoneyDataset=$(HONEYDATASET ) \
25+ -X github.com/lacework/go-sdk/v2/ cli/cmd.BuildTime=$(shell date +% Y% m% d% H% M% S) "
2626GOFLAGS=-mod =vendor
2727CGO_ENABLED? =0
2828export GOFLAGS GO_LDFLAGS CGO_ENABLED
@@ -81,21 +81,21 @@ integration-context-tests: install-tools ## Run integration tests with build tag
8181
8282.PHONY : integration-generation-only
8383integration-generation-only : # # Run integration tests
84- PATH=" $( PWD) /bin:${PATH} " go test -v github.com/lacework/go-sdk/integration -timeout 30m -run " ^TestGeneration" -tags=" generation"
84+ PATH=" $( PWD) /bin:${PATH} " go test -v github.com/lacework/go-sdk/v2/ integration -timeout 30m -run " ^TestGeneration" -tags=" generation"
8585
8686.PHONY : integration-only
8787integration-only : install-tools # # Run integration tests
88- PATH=" $( PWD) /bin:${PATH} " gotestsum -f testname --rerun-fails=3 --packages=" github.com/lacework/go-sdk/integration" \
89- -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags=" $( INTEGRATION_TEST_TAGS) " -run=$(regex )
88+ PATH=" $( PWD) /bin:${PATH} " gotestsum -f testname --rerun-fails=3 --packages=" github.com/lacework/go-sdk/v2/ integration" \
89+ -- -v github.com/lacework/go-sdk/v2/ integration -timeout 30m -tags=" $( INTEGRATION_TEST_TAGS) " -run=$(regex )
9090
9191.PHONY : integration-only-subset
9292integration-only-subset : install-tools # # Run a subset of integration tests
9393 $(eval START := $(shell echo 1+$(index ) * 5 | bc) )
9494 $(eval END := $(shell echo 5+$(index ) * 5 | bc) )
9595 $(eval LENGTH := ${words $(INTEGRATION_TEST_TAGS ) })
9696 if [ ${START} -le ${LENGTH} ]; then \
97- PATH=" $( PWD) /bin:${PATH} " gotestsum -f testname --rerun-fails=3 --packages=" github.com/lacework/go-sdk/integration" \
98- -- -v github.com/lacework/go-sdk/integration -timeout 30m \
97+ PATH=" $( PWD) /bin:${PATH} " gotestsum -f testname --rerun-fails=3 --packages=" github.com/lacework/go-sdk/v2/ integration" \
98+ -- -v github.com/lacework/go-sdk/v2/ integration -timeout 30m \
9999 -tags=" ${wordlist $(START), $(END), $(INTEGRATION_TEST_TAGS)} " -run=$(regex ) \
100100 exit 1; \
101101 fi
@@ -105,14 +105,14 @@ integration-lql: build-cli-cross-platform integration-lql-only ## Build and run
105105
106106.PHONY : integration-lql-only
107107integration-lql-only : # # Run lql integration tests
108- PATH=$(PWD ) /bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags=" query"
108+ PATH=$(PWD ) /bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/v2/ integration -timeout 30m -tags=" query"
109109
110110.PHONY : integration-policy
111111integration-policy : build-cli-cross-platform integration-policy-only # # Build and run lql policy tests
112112
113113.PHONY : integration-policy-only
114114integration-policy-only : # # Run lql policy tests
115- PATH=$(PWD ) /bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags=" policy"
115+ PATH=$(PWD ) /bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/v2/ integration -timeout 30m -tags=" policy"
116116
117117.PHONY : coverage
118118coverage : test # # Output coverage profile information for each function
@@ -175,7 +175,7 @@ run-api-example: ## Run an API example like 'make run-api-example example=api/_e
175175
176176.PHONY : build
177177build : # # Compiles binary for the running workstation
178- go build -o bin/lacework -ldflags=$(GO_LDFLAGS ) github.com/lacework/go-sdk/cli
178+ go build -o bin/lacework -ldflags=$(GO_LDFLAGS ) github.com/lacework/go-sdk/v2/ cli
179179
180180.PHONY : build-cli-cross-platform
181181build-cli-cross-platform : # # Compiles the Lacework CLI for all supported platforms
@@ -184,7 +184,7 @@ build-cli-cross-platform: ## Compiles the Lacework CLI for all supported platfor
184184 -arch="amd64 386" \
185185 -osarch="darwin/amd64 darwin/arm64 linux/arm linux/arm64" \
186186 -ldflags=$(GO_LDFLAGS ) \
187- github.com/lacework/go-sdk/cli
187+ github.com/lacework/go-sdk/v2/ cli
188188
189189.PHONY : generate-databox
190190generate-databox : # # *CI ONLY* Generates in memory representation of template files
0 commit comments