Skip to content

Commit

Permalink
chore: use installed pulumictl in generate_examples script
Browse files Browse the repository at this point in the history
Signed-off-by: Oscar Cobles <[email protected]>
  • Loading branch information
ocobles committed Aug 20, 2024
1 parent 438b6b3 commit 75d830e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bin/pulumi-java-gen: .pulumi-java-gen.version $(PULUMICTL_BIN)
provider: tfgen install_plugins # build the provider binary
provider: only_provider

only_provider:
only_provider: $(PULUMICTL_BIN)
(cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION} -X github.com/equinix/terraform-provider-equinix/version.ProviderVersion=${VERSION}" ${PROJECT}/${PROVIDER_PATH}/cmd/${PROVIDER})

build_sdks: clean build_nodejs build_python build_go build_dotnet build_java # build all the sdks
Expand Down Expand Up @@ -222,7 +222,7 @@ $(PULUMICTL_BIN):
tar -xzf .pulumi/bin/pulumictl.tar.gz -C $(BIN_DIR)
rm -f $(BIN_DIR)/pulumictl.tar.gz

examples: install_equinix_plugin
examples: install_equinix_plugin $(PULUMICTL_BIN)
scripts/generate_examples.sh

# Compute the version of Pulumi to use by inspecting the Go dependencies of the provider.
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EXAMPLES_DIR="${SCRIPT_DIR}/../examples/"
# Docs directory
OUTPUT_DIR="${SCRIPT_DIR}/../docs/resource"
# Pulumi Equinix plugin version installed
VERSION=$(pulumictl get version --language generic)
VERSION=$(.pulumi/bin/pulumictl get version --language generic)

get_patch() {
local version="$1"
Expand Down

0 comments on commit 75d830e

Please sign in to comment.