mirror of https://github.com/pulumi/pulumi.git
192 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
![]() |
7d03ac7174
|
Changelog and go.mod updates for v3.105.0 (#15398)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
3f376fe182
|
Changelog and go.mod updates for v3.104.2 (#15344)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
7bb2a3c2ac
|
Auto-fix encrypted keys in the wrong format due to gocloud.dev upgrade regression (#15334)
When attempting another gocloud.dev upgrade, some users ran into a regression related to the format change of encrypted keys between gocloud versions, which part of the system was not accounting for. This PR addresses the issue and includes a fix that automatically fixes forward state that has an encrypted key in the wrong format, and includes a regression test and test for the auto-fix behavior. Fixes #15329 Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com> |
|
![]() |
93d5605c28
|
Changelog and go.mod updates for v3.104.1 (#15339)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
d1904beb14
|
Revert gocloud.dev upgrade (#15333)
Still regressions happening associated with upgrading gocloud.dev. This reverts https://github.com/pulumi/pulumi/pull/15202. Fixes #15329 |
|
![]() |
e239dc4319
|
Changelog and go.mod updates for v3.104.0 (#15327)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
927b7efef5
|
upgrade gocloud.dev take 2 (#15202)
Another attempt at upgrading gocloud.dev to the latest version. We've identified and added tests for the issues that came up in the last attempt to do the upgrade in https://github.com/pulumi/pulumi/pull/15161 and https://github.com/pulumi/pulumi/pull/15187. The problem with the SAS key appears to have been fixed in gocloud.dev 0.36.0 (The previous upgrade tried 0.28.0), and I've added additional fixes for the azure key vault problem during pulumi refresh in this PR. This needs https://github.com/pulumi/pulumi/pull/15161 to be merged first, but I wanted to open a PR in the meantime. Fixes #15138 Fixes https://github.com/pulumi/pulumi/issues/14647 Fixes https://github.com/pulumi/pulumi/issues/13161 Fixes https://github.com/pulumi/pulumi/issues/14431 Fixes https://github.com/pulumi/pulumi/issues/14541 ## Checklist - [x] 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. --> - [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. --> |
|
![]() |
7ff579f95d
|
Changelog and go.mod updates for v3.103.1 (#15256)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
db0bcc2d9f
|
Changelog and go.mod updates for v3.103.0 (#15248)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
a49ea379de
|
Changelog and go.mod updates for v3.102.0 (#15182)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
8bee243efb
|
Move buildutil out of sdk/common to the go language host (#15168)
Same as https://github.com/pulumi/pulumi/pull/15165, a small bit of code we can move just to the language host. |
|
![]() |
6162d16eb2
|
Move goversion out of sdk/common to the go language host (#15165)
Another small part we can pull out of sdk/go/common. |
|
![]() |
3be1b6289c
|
Remove deprecated Protobufs imports (#15158)
<!--- 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. --> github.com/golang/protobuf is marked deprecated and I was getting increasingly triggered by the inconsistency of importing the `Empty` type from "github.com/golang/protobuf/ptypes/empty" or "google.golang.org/protobuf/types/known/emptypb" as "pbempty" or "empty" or "emptypb". Similar for the struct type. So this replaces all the Protobufs imports with ones from "google.golang.org/protobuf", normalises the import name to always just be the module name (emptypb), and adds the depguard linter to ensure we don't use the deprecated package anymore. ## 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 - [x] 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. --> |
|
![]() |
941f3d0902
|
Clean up project usage (#15154)
<!--- 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. --> The project field on `GetProgramDependenciesRequest` and `GetRequiredPluginsRequest` was marked deprecated at the start of December. None of the language runtimes are using this, so this cleans up the engine side code so we don't need to thread a `*workspace.Project` down to the plugin layer to fill in these fields anymore. I haven't fully removed them from the Protobuf structs yet, we probably could but just to give a little more time for people to get a clear usage error if still using it. ## 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 - [x] 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. --> |
|
![]() |
bd93fcf91a
|
Bump the go_modules group across 29 directories with 1 update (#15131)
Bumps the go_modules group with 1 update in the /cmd/pulumi-test-language directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /sdk/go/pulumi-language-go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /sdk/nodejs/cmd/pulumi-language-nodejs directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /sdk/python/cmd/pulumi-language-python directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/benchmarks/go-alias-norm directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/about/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/config_basic/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/config_missing/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/config_secrets_warn/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_configure_provider/testcomponent-go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_methods/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_methods_errors/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_methods_provider/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_methods_resources/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_methods_unknown/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_output_values/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_plain/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_provider/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_provider_explicit/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_provider_propagation/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_resource_options/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_component_unknown/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/construct_nested_component/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/deleted_with/go directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/rotate_passphrase directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Bumps the go_modules group with 1 update in the /tests/integration/state_rename_parent directory: [github.com/cloudflare/circl](https://github.com/cloudflare/circl). Updates `github.com/cloudflare/circl` from 1.3.3 to 1.3.7 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cloudflare/circl/releases">github.com/cloudflare/circl's releases</a>.</em></p> <blockquote> <h2>CIRCL v1.3.7</h2> <h3>What's Changed</h3> <ul> <li>build(deps): bump golang.org/x/crypto from 0.3.1-0.20221117191849-2c476679df9a to 0.17.0 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/467">cloudflare/circl#467</a></li> <li>kyber: remove division by q in ciphertext compression by <a href="https://github.com/bwesterb"><code>@bwesterb</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/468">cloudflare/circl#468</a></li> <li>Releasing CIRCL v1.3.7 by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/469">cloudflare/circl#469</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/dependabot"><code>@dependabot</code></a> made their first contribution in <a href="https://redirect.github.com/cloudflare/circl/pull/467">cloudflare/circl#467</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/cloudflare/circl/compare/v1.3.6...v1.3.7">https://github.com/cloudflare/circl/compare/v1.3.6...v1.3.7</a></p> <h2>CIRCL v1.3.6</h2> <h3>What's Changed</h3> <ul> <li>internal: add TurboShake{128,256} by <a href="https://github.com/bwesterb"><code>@bwesterb</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/430">cloudflare/circl#430</a></li> <li>Kangaroo12 draft -10 by <a href="https://github.com/bwesterb"><code>@bwesterb</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/431">cloudflare/circl#431</a></li> <li>Add K12 as XOF by <a href="https://github.com/bwesterb"><code>@bwesterb</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/437">cloudflare/circl#437</a></li> <li>xof/k12: Fix a typo in the package documentation by <a href="https://github.com/cjpatton"><code>@cjpatton</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/438">cloudflare/circl#438</a></li> <li>Set CIRCL version for generated assembler code. by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/440">cloudflare/circl#440</a></li> <li>Add tkn20 benchmarks by <a href="https://github.com/tanyav2"><code>@tanyav2</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/442">cloudflare/circl#442</a></li> <li>Add partially blind RSA implementation by <a href="https://github.com/chris-wood"><code>@chris-wood</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/445">cloudflare/circl#445</a></li> <li>Update doc.go by <a href="https://github.com/nadimkobeissi"><code>@nadimkobeissi</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/447">cloudflare/circl#447</a></li> <li>tss/rsa: key generation for threshold RSA (safe primes) by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/450">cloudflare/circl#450</a></li> <li>Bumping Go version for CI jobs. by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/457">cloudflare/circl#457</a></li> <li>Spelling by <a href="https://github.com/jsoref"><code>@jsoref</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/456">cloudflare/circl#456</a></li> <li>blindrsa: updating blindrsa to be compliant with RFC9474 by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/464">cloudflare/circl#464</a></li> <li>Releasing CIRCL v1.3.6 by <a href="https://github.com/armfazh"><code>@armfazh</code></a> in <a href="https://redirect.github.com/cloudflare/circl/pull/465">cloudflare/circl#465</a></li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/nadimkobeissi"><code>@nadimkobeissi</code></a> made their first contribution in <a href="https://redirect.github.com/cloudflare/circl/pull/447">cloudflare/circl#447</a></li> <li><a href="https://github.com/jsoref"><code>@jsoref</code></a> made their first contribution in <a href="https://redirect.github.com/cloudflare/circl/pull/456">cloudflare/circl#456</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.6">https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.6</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
|
![]() |
664b1b9ca5
|
Changelog and go.mod updates for v3.101.1 (#15134)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
c48ed3ba49
|
Revert "upgrade gocloud.dev to latest version" (#15128)
Reverts pulumi/pulumi#15011 /xref https://github.com/pulumi/pulumi/issues/15126 /xref https://github.com/pulumi/pulumi/issues/15127 |
|
![]() |
b37906a1cd
|
Changelog and go.mod updates for v3.101.0 (#15123)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
6c7bb23a70
|
Changelog and go.mod updates for v3.100.0 (#15057)
Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Justin Van Patten <jvp@justinvp.com> |
|
![]() |
d7b1a1d9b1
|
upgrade gocloud.dev to latest version (#15011)
Upgrade gocloud.dev to the latest version. This requires a bit of a workaround, since `gocloud.dev` changed its expectations how the encryption key is stored for Azure. In v0.27.0 and earlier, gocloud.dev accepted an encryption key that was wrapped in base64.RawURLEncoding (and produced one that was wrapped as such. However in v0.28.0 that changed and the encryption key was no longer wrapped in gocloud.dev, and as such it also didn't expect a wrapped key anymore . To keep compatibility we'll keep wrapping the azure key for gocloud.dev in an inner encoding, which seems to be the path of least resistance. Alternatively we could introduce a `v2` encoding by prefixing the string, but that ends up being messier than just keeping the strings compatible. ## 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 - [x] I have formatted my code using `gofumpt` <!--- Please provide details if the checkbox below is to be left unchecked. --> Tests were introduced in https://github.com/pulumi/pulumi/pull/14649, I've updated them slightly to cover the new code as well. - [ ] 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. --> |
|
![]() |
40b45ecc85
|
Add test for azure secrets (#14649)
Add a test showing the problems we ran into when upgrading from gocloud.dev 0.27.0 to 0.28.0 and 0.29.0. It's a little bit awkward, since the issue only happens when upgrading form an encrypted key generated with the old version of gocloud.dev to a newer version of gocloud.dev. Fixes https://github.com/pulumi/pulumi/issues/11986 --------- Co-authored-by: Thomas Gummerer <t.gummerer@gmail.com> |
|
![]() |
37e6ad44d0
|
Upgrade go-git to v5.11.0 (#15013)
Bumps github.com/go-git/go-git/v5 to 5.11.0 to address https://github.com/go-git/go-git/security/advisories/GHSA-mw99-9chc-xw7r Co-authored-by: Roy Reznik <roy@wiz.io> |
|
![]() |
ed92af8a5e
|
Changelog and go.mod updates for v3.99.0 (#14978)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
3560333ae6
|
Clean up uses of .Error() (#14965)
Combination of a few cleanups. 1. Don't call .Error() on errors that are being passed to "%s" format functions. Format will call `Error()` itself. 2. Don't call assert.Error then assert.Equal/Contains, just use assert.ErrorEqual/ErrorContains instead. 3. Use "%w" if appropriate, instead of "%v"/"%s". |
|
![]() |
53244f09ae
|
Bump golang.org/x/crypto to 0.17.0 (#14962)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) to 0.17.0. Replaces all the dependabot PRs in the repo with this single PR. Also bumped `github.com/pulumi/pulumi/sdk/v3` in `tests/integration/transformations/go/simple/go.mod` from v3.97.0 to v3.98.0 to use esc v0.6.1, and avoid the appdash issue. |
|
![]() |
9853228bc9
|
Update esc to v0.6.2 (#14960)
Update to the latest version of esc. |
|
![]() |
bfa0ad15bf
|
Changelog and go.mod updates for v3.98.0 (#14951)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
b0c276ece0
|
Update esc to v0.6.1 (#14939)
First step in addressing https://github.com/pulumi/pulumi/issues/14873 Note: I suspect I'll need to temporarily disable some codegen tests to get this merged, and then once we release v3.98.0 and the next version of esc, we can re-enable. |
|
![]() |
35757a1a9d
|
Changelog and go.mod updates for v3.97.0 (#14853)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
16d9f4c167
|
Enable perfsprint linter (#14813)
<!--- 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. --> Prompted by a comment in another review: https://github.com/pulumi/pulumi/pull/14654#discussion_r1419995945 This lints that we don't use `fmt.Errorf` when `errors.New` will suffice, it also covers a load of other cases where `Sprintf` is sub-optimal. Most of these edits were made by running `perfsprint --fix`. ## 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 - [x] 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. --> |
|
![]() |
6e986f90af
|
Pass root and main info to language host methods (#14654)
<!--- 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. --> This is two changes rolled together in a way. Firstly passing some of the data that we pass on language runtime startup to also pass it to Run/GetRequiredPlugins/etc. This is needed for matrix testing, as we only get to start the language runtime up once for that but want to execute multiple programs with it. I feel it's also a little more consistent as we use the language runtimes in other contexts (codegen) where there isn't really a root directory, and aren't any options (and if we did do options the options for codegen are not going to be the same as for execution). It also means we can reuse a language host for shimless and substack programs, as before they heavily relied on their current working directory to calculate paths, and obviosly could only take one set of options at startup. Imagine a shimless python package + a python root program, that would have needed two startups of the python language host to deal with, this unblocks it so we can make the engine smarter and only use one. Secondly renaming some of the fields we pass to Run/GetRequiredPlugins/etc today. `Pwd` and `Program` were not very descriptive and had pretty non-obvious documentation: ``` string pwd = 3; // the program's working directory. string program = 4; // the path to the program to execute. ``` `pwd` will remain, although probably rename it to `working_directory` at some point, because while today we always start programs up with the working directory equal to the program directory that definitely is going to change in the future (at least for MLCs and substack programs). But the name `pwd` doesn't make it clear that this was intended to be the working directory _and_ the directory which contains the program. `program` was in fact nearly always ".", and if it wasn't that it was just a filename. The engine never sent a path for `program` (although we did have some unit tests to check how that worked for the nodejs and python hosts). These are now replaced by a new structure with (I think) more clearly named and documented fields (see ProgramInfo in langauge.proto). The engine still sends the old data for now, we need to update dotnet/yaml/java before we break the old interface and give Virtus Labs a chance to update [besom](https://github.com/VirtusLab/besom). ## 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. --> - [ ] 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. --> |
|
![]() |
9ee43459c2
|
Changelog and go.mod updates for v3.96.2 (#14809)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
0f4ddc2ccf
|
Use EqualError/ErrorContains instead of Error (#14737)
<!--- 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. --> This is a pass over all of /sdk to replace asserts that just checked we had an error with asserts for what the error value is. Just checking for an error is a weak test that can result in error paths being broken and tests not detecting it. |
|
![]() |
e071d9da92
|
Changelog and go.mod updates for v3.96.1 (#14791)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
60b250eeb0
|
Changelog and go.mod updates for v3.96.0 (#14780)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
4af97b4c39
|
Return diagnostics from GeneratePackage (#14661)
<!--- 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/14660. Fairly simple change to bring the GeneratePackage RPC method into alignment with the other codegen methods and use returned diagnostics rather than just error values. `gen-sdk` is updated to print those diagnostics, and the python/node/go runtimes updated to return the diagnostics from schema binding as diagnostics rather than just an error value. Might be worth at some point seeing if the rest of package generation could use diagnostics rather than error values, but that's a larger lift. ## 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. --> - [ ] 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. --> |
|
![]() |
29bf5d694b
|
Replace ResourceSet with a generic set type (#14724)
<!--- 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. --> We've got a few "Set" types written up from before generics. We should be able to replace them all with just one generic set container now. This replaces `graph.ResourceSet` (which is only used in pkg) with a generic set type (github.com/deckarep/golang-set). |
|
![]() |
9557a9eb00
|
Changelog and go.mod updates for v3.95.0 (#14720)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
d078735823
|
Reimport appdash from our mirror (#14701)
Fixes https://github.com/pulumi/pulumi/issues/14646. |
|
![]() |
064fb93587
|
[esc] Add commands for managing stack environments (#14628)
These changes add two commands for managing a stack's environments: - `pulumi config env add`, which adds environments to a stack's import list - `pulumi config env rm`, which removes an environment from a stack's import list As implied by their paths, these commands hang off of a new sub-command of `pulumi config`, `pulumi config env`. From the usage: * `pulumi config env add` Adds environments to the end of a stack's import list. Imported environments are merged in order per the ESC merge rules. The list of stacks behaves as if it were the import list in an anonymous environment. * `pulumi config env rm` Removes an environment from a stack's import list. Each of these commands previews the new stack environment and shows the environment definition. These commands print a warning if the stack's environment does not define any of the `environmentVariables`, `files`, or `pulumiConfig` properties. |
|
![]() |
ecb58cc9f7
|
[cli] Include config from ESC in `pulumi config` (#14560)
These changes include any configuration values sourced from a stack's ESC environment to the output of `pulumi config`. These changes also add an `ENVIRONMENT` block to the output of `pulumi config` for stacks that reference environments. This block shows the definition of the stack's environment. Finally, these changes add a warning to `pulumi config` if the stack's ESC environment does not define any of the `environmentVariables`, `files`, or `pulumiConfig` properties. |
|
![]() |
000b9fd5e6
|
Changelog and go.mod updates for v3.94.2 (#14610)
Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Fraser Waters <fraser@pulumi.com> |
|
![]() |
84ac5036d9
|
Update esc to v0.6.0 (#14591)
Should help with the `cli.PrepareEnvironment` build issues some people have been seeing. |
|
![]() |
213b90c687
|
Changelog and go.mod updates for v3.94.1 (#14593)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
4fbb6ba0bb
|
Changelog and go.mod updates for v3.94.0 (#14568)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
3b6f5e0148
|
Changelog and go.mod updates for v3.92.0 (#14496)
Co-authored-by: github-actions <github-actions@github.com> |
|
![]() |
cbcad3277e
|
Allow shallow clones for local workspaces (#14312)
<!--- 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 This exposes a GitRepo option to enable shallow cloning repositories. This is helpful in cases where the repo has a large history. ## 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. --> |
|
![]() |
4a577563ef
|
upgrade pulumi-yaml to 1.4.0 (#14425)
Upgrade pulumi-yaml to the latest version |
|
![]() |
06f1154a82
|
[esc] update to v0.5.7 (#14430)
Co-authored-by: Justin Van Patten <jvp@justinvp.com> |
|
![]() |
44ec0bc710
|
Changelog and go.mod updates for v3.91.1 (#14433)
Co-authored-by: github-actions <github-actions@github.com> |