From 217456faf6bd4678e7a6b1e5eca2bcb63cf7ccc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=20De=20Gri=C3=A8ve?= Date: Thu, 14 Dec 2023 10:49:20 +0100 Subject: [PATCH] improve example setup --- .github/README.md | 2 +- Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index ab0c2d3..ab52824 100644 --- a/.github/README.md +++ b/.github/README.md @@ -14,7 +14,7 @@ $ go build -o terraform-provider-datadome 1. Build the provider. -2. Install it. +2. Install it (you may need to change the value of `OS_ARCH` inside Makefile). ```shell $ make install diff --git a/Makefile b/Makefile index b12030d..4e71fcc 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ NAME=datadome BINARY=terraform-provider-${NAME} VERSION=0.0.1 OS_ARCH=linux_amd64 +#OS_ARCH=darwin_amd64 default: install @@ -36,7 +37,7 @@ release-local: install: build mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} - mv ${BINARY} ~/.terraform.d/plugins/${OS_ARCH} + mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH} test: go test -i $(TEST) || exit 1