@@ -19,10 +19,10 @@ PACKAGENAME?=lacework-cli
19
19
CLINAME? =lacework
20
20
# Honeycomb variables
21
21
HONEYDATASET? =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) "
26
26
GOFLAGS=-mod =vendor
27
27
CGO_ENABLED? =0
28
28
export GOFLAGS GO_LDFLAGS CGO_ENABLED
@@ -81,21 +81,21 @@ integration-context-tests: install-tools ## Run integration tests with build tag
81
81
82
82
.PHONY : integration-generation-only
83
83
integration-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"
85
85
86
86
.PHONY : integration-only
87
87
integration-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 )
90
90
91
91
.PHONY : integration-only-subset
92
92
integration-only-subset : install-tools # # Run a subset of integration tests
93
93
$(eval START := $(shell echo 1+$(index ) * 5 | bc) )
94
94
$(eval END := $(shell echo 5+$(index ) * 5 | bc) )
95
95
$(eval LENGTH := ${words $(INTEGRATION_TEST_TAGS ) })
96
96
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 \
99
99
-tags=" ${wordlist $(START), $(END), $(INTEGRATION_TEST_TAGS)} " -run=$(regex ) \
100
100
exit 1; \
101
101
fi
@@ -105,14 +105,14 @@ integration-lql: build-cli-cross-platform integration-lql-only ## Build and run
105
105
106
106
.PHONY : integration-lql-only
107
107
integration-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"
109
109
110
110
.PHONY : integration-policy
111
111
integration-policy : build-cli-cross-platform integration-policy-only # # Build and run lql policy tests
112
112
113
113
.PHONY : integration-policy-only
114
114
integration-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"
116
116
117
117
.PHONY : coverage
118
118
coverage : 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
175
175
176
176
.PHONY : build
177
177
build : # # 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
179
179
180
180
.PHONY : build-cli-cross-platform
181
181
build-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
184
184
-arch="amd64 386" \
185
185
-osarch="darwin/amd64 darwin/arm64 linux/arm linux/arm64" \
186
186
-ldflags=$(GO_LDFLAGS ) \
187
- github.com/lacework/go-sdk/cli
187
+ github.com/lacework/go-sdk/v2/ cli
188
188
189
189
.PHONY : generate-databox
190
190
generate-databox : # # *CI ONLY* Generates in memory representation of template files
0 commit comments