pulumi/pkg/codegen/schema
Will Jones ed96861543
Allow provider version mismatches when `import`ing resources (#18272)
In #18039 we added the ability to generate code for imports involving
parameterized providers. In doing so, we cleaned up a long-standing TODO
around checking the versions of loaded providers against those in the
state being imported to. While this stricter check brought with it a
higher degree of correctness, it broke a number of workflows, such as
attaching an existing provider instance (which may have a different
version) to an import operation. This happens in some provider CI
workflows and tests, where we want to test an older state file's
compatibility with the new (to-be-released) provider version. In such
cases, the state reports vN and the load returns vN+0.0.1 or the like.
This change restores the old behaviour by introducing explicit errors to
identify when mismatches occur and handling them specially in the
`import` case. #18271 tracks the introduction of something a bit better,
where maybe we allow semver-compatible versions only rather than
allowing everything as we once (and once again) do.

Fixes #18270
2025-01-17 11:29:29 +00:00
..
README.md Document code generation concepts (#17162) 2024-09-05 13:12:59 +00:00
bind.go Enable support pack for all parameterized packages (#17923) 2024-12-05 11:16:33 +00:00
docs_parser.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
docs_renderer.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
docs_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
loader.go Allow provider version mismatches when `import`ing resources (#18272) 2025-01-17 11:29:29 +00:00
loader_cached.go Split caching logic into it's own type to use with LoaderClient (#17118) 2024-08-31 13:25:20 +00:00
loader_cached_test.go Split caching logic into it's own type to use with LoaderClient (#17118) 2024-08-31 13:25:20 +00:00
loader_client.go Bump gRPC dependencies and migrate `grpc.Dial` (#17701) 2024-11-06 18:36:10 +00:00
loader_js.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
loader_mmap.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
loader_schema_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
loader_server.go Use LoadPackageV2 in loader server (#18021) 2024-12-19 01:24:01 +00:00
loader_test.go Allow provider version mismatches when `import`ing resources (#18272) 2025-01-17 11:29:29 +00:00
mock_pulumi_schema.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
package_reference.go Enable support pack for all parameterized packages (#17923) 2024-12-05 11:16:33 +00:00
pulumi.json Tiny fixes in pulumi.json descriptions (#17958) 2024-12-07 00:20:42 +00:00
schema.go Enable support pack for all parameterized packages (#17923) 2024-12-05 11:16:33 +00:00
schema_test.go Reject duplicate schema paths (#17797) 2024-11-18 16:21:09 +00:00

README.md

(schema)=

Pulumi Schema

This package defines Pulumi Schema, a language-neutral specification for cloud resource models. Pulumi Schema is the interface definition language for all Pulumi Packages, and is used as the input to SDK code generation for each supported Pulumi language.