Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Gummerer bbd9fdba40 move testdata back under codegen (we should find a better solution for this) 2024-04-03 10:56:53 +02:00
Anton Tayanovskyy d62c398bfb
Move codegen testdata ()
<!--- 
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. -->

It appears that Go copies testdata into every GOMODCACHE of a project
that depends on pulumi/pkg; the schemas in codegen testdata add 300MB of
weight to the GOMODCACHE needed for download. What if we moved the
testdata out from under the tree.

The move looks like this:

```
from=pkg/codegen/testing/test/testdata
to=tests/testdata/codegen/
git mv "$from" "$to"
(cd pkg/codegen/testing/test && ln -s ../../../../tests/testdata/codegen ./testdata)
git add "$from"
```

The previous location is symlinked to the new location.

Evidence of `GOMODCACHE` pressure reduction:
https://gist.github.com/t0yv0/05dd8be5880171045aed01e123ae2b09

## 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.
-->
- [ ] 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. -->
2024-03-06 20:36:50 +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
Fraser Waters f4ad5c5a56 Remove dotnet 2022-12-13 16:13:53 +00:00
Zaid Ajaj 9fde68ed13 [dotnet/sdk-gen] Do not reference Pulumi nuget if a project reference already exists 2022-11-14 15:10:00 +01:00
Ian Wahbe a43eaf35df Set minimum .NET build version to 3.23.0 2022-11-10 09:49:12 -08:00
Ian Wahbe 0ab75557b6 Add Pulumi as a default dependency for .NET 2022-11-09 14:05:50 -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 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
Ian Wahbe 3015d6948a
Patch go plain input ()
* Revert , Leave sidechannel

* Associated test update

* Correct input Objects marked as plain

* Update associated tests

* Fix unused import import bug

* Restore type names test

* Correctly handle plain types with default methods

* Changelog

* Remove unused field
2022-04-29 09:54:42 -07:00
Ian Wahbe 9a8d8d928f
Correctly import plain types ()
* Add test case

* Correctly import plain types

* Update tests

* Update type_driver tests

* Update CHANGELOG_PENDING.md
2022-04-21 11:29:30 +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