Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Begin Gradual port to go-provider-sdk #258

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .golangci.yml
Empty file.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PROVIDER_PATH := provider
VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version

SCHEMA_FILE := provider/cmd/pulumi-resource-pulumiservice/schema.json
GOPATH := $(shell go env GOPATH)
export GOPATH := $(shell go env GOPATH)

WORKING_DIR := $(shell pwd)
TESTPARALLELISM := 4
Expand All @@ -33,7 +33,15 @@ build_sdks: dotnet_sdk go_sdk nodejs_sdk python_sdk java_sdk

gen_sdk_prerequisites: $(PULUMI)

provider::
schema: $(SCHEMA_FILE) # schema is human remember-able alias for $(SCHEMA_FILE)

.PHONY: $(SCHEMA_FILE)
$(SCHEMA_FILE): provider
$(PULUMI) package get-schema $(WORKING_DIR)/bin/${PROVIDER} | \
jq 'del(.version)' > $(SCHEMA_FILE)

.PHONY: provider
provider:
(cd provider && VERSION=${VERSION} go generate cmd/${PROVIDER}/main.go)
(cd provider && go build -o $(WORKING_DIR)/bin/${PROVIDER} -ldflags "-X ${PROJECT}/${VERSION_PATH}=${VERSION}" $(PROJECT)/${PROVIDER_PATH}/cmd/$(PROVIDER))

Expand Down
Loading
Loading