Commit Graph

7 Commits

Author SHA1 Message Date
Aaron Friel ac80164670
Fix incorrect YAML type checking of StackReference outputs ()
Part of .

Pulumi YAML uses the schema defined here to type check outputs from the
`pulumi:pulumi:StackReference` resource. This changes the type of
`outputs` from `map[string]string` to `map[string]any`, permitting list,
map, and numeric outputs to be used as inputs to other resources.

To release this fix, we will need to release Pulumi twice and YAML once
if we are to use our ordinary release process:

1. Merge this PR.
2. Release sdk and pkg dependencies with this update applied.
3. Merge https://github.com/pulumi/pulumi-yaml/pull/600
4. Create and merge a PR to update Pulumi YAML's dependency on
`github.com/pulumi/pkg/v3`, as YAML links to the schema loader and will
read the updated schema here:

7f48ca370d/pkg/codegen/schema/loader.go (L136-L140)
 
5. Release Pulumi YAML
6. Create and merge a PR to update the YAML language plugin shipped with
Pulumi
7. Release Pulumi
2024-07-11 14:17:41 +00:00
Abhinav Gupta e395deef6b
all: Assert => Assertf
Migrates all remaining usages of
`contract.Assert*` and `contract.Require*` to the f variants,
which require adding meaningful error messages.

There were a couple cases where a `testing.T` or `testing.B`
was already available.
For those, this uses t.FailNow or require.NoError.

Refs 
2023-03-03 14:37:43 -08:00
Ian Wahbe 84aeccee67 Avoid panicing on invalid Pulumi.yaml["plugins"] 2023-01-18 10:59:19 -08:00
aq17 b10b0c80a1 Test YAML PCL examples 2022-10-24 10:33:48 -07:00
Alex Qiu b1557bc5ec
Fix StackReference code gen () 2022-08-19 10:27:05 -07:00
Fraser Waters ab46b0c5a7
Change pulumi schema to use PackageSpec ()
This ensures the schema is fully validated by the spec parser, the old
schema wasn't even codegen-able because of various fields not being
linked up correctly.
2022-08-08 17:32:27 +01:00
Alex Qiu e020a12b44
Add mock pulumi package () 2022-07-18 19:47:31 -07:00