From 9842596e0e9a3207f49854a2858e2f9aa41613d9 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Fri, 17 Jan 2025 10:56:32 -0500 Subject: [PATCH] Use pre hook --- .ci-mgmt.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-mgmt.yaml b/.ci-mgmt.yaml index 8b345e782d..b5b75930a5 100644 --- a/.ci-mgmt.yaml +++ b/.ci-mgmt.yaml @@ -6,7 +6,7 @@ timeout: 150 generate-nightly-test-workflow: true providerVersion: github.com/hashicorp/terraform-provider-aws/version.ProviderVersion -buildProviderCmd: "(VERSION=${VERSION_GENERIC} ./scripts/minimal_schema.sh); $(call build_provider_cmd_default,$(1),$(2),$(3))" +buildProviderPre: "VERSION=${VERSION_GENERIC} ./scripts/minimal_schema.sh" toolVersions: dotnet: "6.0.x" diff --git a/Makefile b/Makefile index feeadc09c3..4164ba6e73 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,7 @@ lint_provider: provider lint_provider.fix: cd provider && golangci-lint run --path-prefix provider -c ../.golangci.yml --fix .PHONY: lint_provider lint_provider.fix -build_provider_cmd = (VERSION=${VERSION_GENERIC} ./scripts/minimal_schema.sh); $(call build_provider_cmd_default,$(1),$(2),$(3)) +build_provider_cmd = VERSION=${VERSION_GENERIC} ./scripts/minimal_schema.sh;cd provider && GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build $(PULUMI_PROVIDER_BUILD_PARALLELISM) -o "$(3)" -ldflags "$(LDFLAGS)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(PROVIDER) provider: bin/$(PROVIDER)