Skip to content

Commit 273251a

Browse files
author
Dennis Carey
committed
Allow optionally setting the path to packer to deal with the conflict with cracklib packer
1 parent 4b31bdd commit 273251a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GNUmakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ COUNT?=1
66
TEST?=$(shell go list ./...)
77
HASHICORP_PACKER_PLUGIN_SDK_VERSION?=$(shell go list -m github.com/hashicorp/packer-plugin-sdk | cut -d " " -f2)
88

9+
PACKER_PATH?=packer
10+
911
.PHONY: dev
1012

1113
build:
1214
@go build -o ${BINARY}
1315

1416
dev:
1517
@go build -ldflags="-X '${PLUGIN_FQN}/version.VersionPrerelease=dev'" -o '${BINARY}'
16-
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-//')"
1719

1820
test:
1921
@go test -race -count $(COUNT) $(TEST) -timeout=3m

0 commit comments

Comments
 (0)