From 10050a7ccdeef74d89e75ffb49d89d76eb964cfa Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Mon, 18 Mar 2024 20:58:30 -0700 Subject: [PATCH] missing target --- Makefile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 440b3ddc..e7c333f0 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,10 @@ PYPI_VERSION := $(shell pulumictl get version --language python) NODE_VERSION := $(shell pulumictl get version --language javascript) DOTNET_VERSION := $(shell pulumictl get version --language dotnet) -ensure:: - cd provider && go mod tidy - cd tests && go mod tidy +ensure:: tidy lint test_provider sdk + +.PHONY: +tidy: provider/go.sum tests/go.sum provider:: (cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" $(PROJECT)/${PROVIDER_PATH}/cmd/$(PROVIDER)) @@ -119,7 +120,7 @@ build:: provider dotnet_sdk go_sdk nodejs_sdk python_sdk only_build:: build lint:: - for DIR in "provider" "sdk" "tests" ; do \ + for DIR in "provider" "tests" ; do \ pushd $$DIR && golangci-lint run --fix -c ../.golangci.yml --timeout 10m && popd ; \ done @@ -155,6 +156,9 @@ codegen: .PHONY: generate_schema: +.PHONY: +generate_go: + ${SCHEMA_PATH}: bin/${PROVIDER} pulumi package get-schema bin/${PROVIDER} > $(SCHEMA_PATH) @@ -164,6 +168,12 @@ bin/${PROVIDER}: provider/**.go bin/pulumi-java-gen: .pulumi-java-gen.version pulumictl download-binary -n pulumi-language-java -v v$(shell cat .pulumi-java-gen.version) -r pulumi/pulumi-java +provider/go.sum: provider/go.mod + cd provider && go mod tidy + +tests/go.sum: tests/go.mod + cd tests && go mod tidy + $(shell mkdir -p sdk) sdk: sdk/python sdk/nodejs sdk/java sdk/python sdk/go sdk/dotnet