Skip to content

Commit

Permalink
missing target
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Mar 19, 2024
1 parent 54ed8ea commit 10050a7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -155,6 +156,9 @@ codegen:
.PHONY:
generate_schema:

.PHONY:
generate_go:

${SCHEMA_PATH}: bin/${PROVIDER}
pulumi package get-schema bin/${PROVIDER} > $(SCHEMA_PATH)

Expand All @@ -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

Expand Down

0 comments on commit 10050a7

Please sign in to comment.