Skip to content

Commit 6fe691b

Browse files
committed
Fix tfplugindocs generate error on M1 macs
1 parent 2b3d413 commit 6fe691b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GNUmakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ build: ## Build the provider binary.
1111

1212
generate: tool-tfplugindocs ## Generate files to be checked in.
1313
@# Setting empty environment variables to work around issue: https://github.com/hashicorp/terraform-plugin-docs/issues/12
14-
GITLAB_TOKEN="" $(GOBIN)/tfplugindocs generate
14+
@# Setting the PATH so that tfplugindocs uses the same terraform binary as other targets here, and to resolve a "Error: Incompatible provider version" error on M1 macs.
15+
GITLAB_TOKEN="" PATH="$(GOBIN):$(PATH)" $(GOBIN)/tfplugindocs generate
1516

1617
ifdef RUN
1718
TESTARGS += -test.run $(RUN)

0 commit comments

Comments
 (0)