pulumi/changelog/pending
bors[bot] bb1964f4ec
Merge #13120
13120: Make convert more lenient r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Fixes https://github.com/pulumi/pulumi/issues/13117

This adds a new "--strict" flag to `pulumi convert` which defaults to false. When strict is NOT set we bind the PCL with the extra options of `SkipResourceTypechecking`, `AllowMissingVariables`, and `AllowMissingProperties`. This will change some errors to warnings in code generation.

The `strict` flag is sent over the gRPC interface to the Go/Node plugins for their `GenerateProject` methods as they have to do PCL binding plugin side currently.

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Cloud,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Fraser Waters <fraser@pulumi.com>
2023-06-08 10:18:42 +00:00
..
20230315--engine--deletedwith-resourceoption-is-now-inherited-from-its-parent-across-sdks.yaml Resources now inherit the `DeletedWith` Resource Option across SDKs. 2023-06-02 09:20:26 -07:00
20230523--engine--add-pulumi-tags-config-option-to-set-stack-tags.yaml Support 'pulumi:tags' config to set stack tags 2023-05-24 09:02:22 +01:00
20230526--programgen-go--fix-conversion-of-programs-with-components-for-go.yaml Test components in convert 2023-06-01 20:54:44 +01:00
20230602--cli-plugin--language-plugins-respect-pulumi_ignore_ambient_plugins.yaml Don't lookup bundled plugins on path if IGNORE_AMBIENT_PLUGINS is set 2023-06-02 17:49:55 +01:00
20230602--programgen-dotnet-go--do-not-error-out-when-generaing-not-yet-implemented-forexpressions.yaml Do not error out when generaing not yet implemented ForExpressions 2023-06-02 16:59:46 +02:00
20230602--programgen-go-nodejs--fix-a-panic-in-diagnostics-from-go-nodejs-project-generation.yaml Fix hcl.Diagnostic roundtripping 2023-06-02 23:10:21 +01:00
20230602--programgen-nodejs--only-await-promise-returning-invokes-in-typescript-program-gen.yaml Only await promise-returning invokes in typescript program-gen 2023-06-02 18:33:18 +02:00
20230603--programgen-dotnet--only-await-task-returning-invokes-in-dotnet-program-gen.yaml Only await task-returning invokes in dotnet program-gen 2023-06-03 09:23:38 +02:00
20230607--cli--convert-now-defaults-to-be-more-leniant-about-program-correctness-old-behaviour-can-be-toggled-back-on-with-strict.yaml Make convert more lenient 2023-06-08 11:14:31 +01:00
20230607--cli-new--escape-special-characters-in-project-description.yaml cli/new: Escape special characters in project description 2023-06-07 14:54:02 -07:00
20230607--pkg--upgrade-pulumi-java-to-v0-9-4.yaml Upgraded pulumi-java go dependency to v0.9.4 2023-06-07 14:53:14 -07:00
20230607--programgen-go--fix-panic-in-go-program-gen-when-encountering-splat-expressions.yaml Fix panic in go program-gen when encountering splat expressions 2023-06-07 13:22:41 +02:00
20230607--programgen-nodejs--allow-output-variables-to-have-the-same-identifier-as-other-program-nodes.yaml Allow output variables to have the same identifier as other program nodes 2023-06-07 02:37:40 +02:00