Commit Graph

13 Commits

Author SHA1 Message Date
Zaid Ajaj a1112c878e
[dotnet/sdk-gen] Fixes potential conflicts when generating resources called System ()
# Description

When generating a C# package that has a resource called `System`, it
fails to compile when we fully qualify
`System.Diagnostics.CodeAnalysis.SuppressMessage` in the generated
`Config.cs` file since it thinks that `System.Diagnostics` is referring
to a static class on the `System` resource definition.

The fix is to prefix the attribute with `global::` so that type
resolution works as expected.

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [ ] 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. -->
- [ ] 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. -->
2023-09-22 13:41:15 +00:00
Fraser Waters 0d97a25449 Remove UseSharedCompilation from .csproj codegen
Fixes https://github.com/pulumi/pulumi/issues/13145
2023-06-09 23:37:10 +01:00
Fraser Waters 7efaff1e04 Fix whitespace in generated .csproj files 2023-03-31 23:33:02 +01:00
Fraser Waters 677b1d5e60 Update dotnet codegen to net6.0 2023-03-02 16:35:38 +00:00
Anton Tayanovskyy af937ec2b9
Revert "Update Pulumi codegen to net6.0" 2023-01-10 09:12:56 -08:00
Fraser Waters 290d0fce5a Fix tests 2023-01-04 18:05:10 +00:00
Jasmine Dahilig 42784f6204 modify codegen/python to generate valid python code for non-string secrets 2022-12-07 11:36:15 -08:00
Zaid Ajaj fe94ca322d Make sure all references to Pulumi types now are suffixed with the global modifier 2022-09-15 01:19:32 +02:00
Zaid Ajaj 8a34e80267 Ensure that Pulumi.Config reference is coming from the main Pulumi namespace 2022-09-15 01:06:26 +02:00
Zaid Ajaj 9ab26c7703
[dotnet/codegen] Prefix referenced Pulumi types with global modifier ()
* Prefix referenced Pulumi types with global modifier

* Changelog entry
2022-07-27 11:24:21 +02:00
Zaid Ajaj b98194a33f
[dotnet/codegen] Override inherited Empty property from arg types ()
* Override inherited Empty property from arg types

* change log entry

* Merge branch 'master' into zaid/static-empty-resource-args
2022-07-27 11:23:34 +02:00
Aaron Friel 92258c3864
fix: enable codegen for resources named, e.g., Environment ()
* fix: enable codegen for resources named, e.g., Environment

* address PR comments
2022-04-04 15:06:03 -07:00
Ian Wahbe a1e18dae4d
export codegen tests for internal use ()
* Export Codegen test modules

* Document pkg stability guarantee

* Expose programgen

* Recommendation: Improve wording

* Move `internal` to `testing`

* Re-rout references to codegen/internal

* Fix some other "internal" references
2022-02-07 12:10:04 +01:00