Skip to content

Commit

Permalink
Respect schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Oct 2, 2024
1 parent 8be43d7 commit c96d018
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PULUMI_MISSING_DOCS_ERROR := true

# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
# Local & branch builds will just used this fixed default version unless specified
PROVIDER_VERSION ?= 0.0.0-alpha.0+dev
PROVIDER_VERSION ?= 0.3.2-alpha.0+dev
# Use this normalised version everywhere rather than the raw input to ensure consistency.
VERSION_GENERIC = $(shell pulumictl convert-version --language generic --version "$(PROVIDER_VERSION)")

Expand Down
10 changes: 7 additions & 3 deletions provider/cmd/pulumi-resource-acme/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
"Pulumi": "3.*"
},
"compatibility": "tfbridge20",
"rootNamespace": "Pulumiverse"
"rootNamespace": "Pulumiverse",
"respectSchemaVersion": true
},
"go": {
"importBasePath": "github.com/pulumiverse/pulumi-acme/sdk/go/acme",
"generateResourceContainerTypes": true,
"generateExtraInputTypes": true
"generateExtraInputTypes": true,
"respectSchemaVersion": true
},
"nodejs": {
"packageName": "@pulumiverse/acme",
Expand All @@ -41,7 +43,8 @@
"@types/node": "^10.0.0"
},
"compatibility": "tfbridge20",
"disableUnionOutputTypes": true
"disableUnionOutputTypes": true,
"respectSchemaVersion": true
},
"python": {
"packageName": "pulumiverse_acme",
Expand All @@ -50,6 +53,7 @@
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/vancluever/terraform-provider-acme)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-acme` repo](https://github.com/pulumiverse/pulumi-acme/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-acme` repo](https://github.com/vancluever/terraform-provider-acme/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
"pyproject": {
"enabled": true
}
Expand Down
6 changes: 5 additions & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ func Provider() tfbridge.ProviderInfo {
// section, or refer to the AWS provider. Delete this section if there are
// no overlay files.
//Overlay: &tfbridge.OverlayInfo{},
RespectSchemaVersion: true,
},
Python: &tfbridge.PythonInfo{
PackageName: "pulumiverse_acme",
// List any Python dependencies and their version ranges
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
PyProject: struct{ Enabled bool }{true},
PyProject: struct{ Enabled bool }{true},
RespectSchemaVersion: true,
},
Golang: &tfbridge.GolangInfo{
ImportBasePath: filepath.Join(
Expand All @@ -112,12 +114,14 @@ func Provider() tfbridge.ProviderInfo {
mainPkg,
),
GenerateResourceContainerTypes: true,
RespectSchemaVersion: true,
},
CSharp: &tfbridge.CSharpInfo{
RootNamespace: "Pulumiverse",
PackageReferences: map[string]string{
"Pulumi": "3.*",
},
RespectSchemaVersion: true,
},
}

Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Pulumiverse.Acme.csproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/dotnet/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/go/acme/internal/pulumiUtilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/acme/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/nodejs/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/python/pulumiverse_acme/pulumi-plugin.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c96d018

Please sign in to comment.