We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b31bdd commit 273251aCopy full SHA for 273251a
1 file changed
GNUmakefile
@@ -6,14 +6,16 @@ COUNT?=1
6
TEST?=$(shell go list ./...)
7
HASHICORP_PACKER_PLUGIN_SDK_VERSION?=$(shell go list -m github.com/hashicorp/packer-plugin-sdk | cut -d " " -f2)
8
9
+PACKER_PATH?=packer
10
+
11
.PHONY: dev
12
13
build:
14
@go build -o ${BINARY}
15
16
dev:
17
@go build -ldflags="-X '${PLUGIN_FQN}/version.VersionPrerelease=dev'" -o '${BINARY}'
- packer plugins install --path ${BINARY} "$(shell echo "${PLUGIN_FQN}" | sed 's/packer-plugin-//')"
18
+ ${PACKER_PATH} plugins install --path ${BINARY} "$(shell echo "${PLUGIN_FQN}" | sed 's/packer-plugin-//')"
19
20
test:
21
@go test -race -count $(COUNT) $(TEST) -timeout=3m
0 commit comments