Commit Graph

14 Commits

Author SHA1 Message Date
Justin Van Patten c09d92a21a
Freeze v3.113.3 ()
Will merge and release after https://github.com/pulumi/pulumi/pull/15998
is merged.
2024-04-19 17:38:57 +00:00
Justin Van Patten 4a88a7ce9f
Freeze v3.113.2 ()
To be merged after https://github.com/pulumi/pulumi/pull/15976.
2024-04-18 23:15:49 +00:00
Thomas Gummerer cfd3784782
Freeze 3.113.1 ()
This should be merged after https://github.com/pulumi/pulumi/pull/15974.
I'm not including the tentative changelog there as the most important
item on the list isn't merged yet (and go-change isn't cooperating with
me trying to get that included manually).
2024-04-18 09:25:49 +00:00
Justin Van Patten 6210fe97f8
Freeze v3.113.0 ()
### Features

- [auto/{go,nodejs,python}] Add support for continue-on-error parameter
of the destroy command to the Automation API
  [](https://github.com/pulumi/pulumi/pull/15921)

- [cli] Support always fully qualifying stack names in CLI output
  [](https://github.com/pulumi/pulumi/pull/15857)

- [cli] Add --no-plugins and --no-dependencies to `pulumi install`
  [](https://github.com/pulumi/pulumi/pull/15910)

- [docs] Implement Java constructor syntax examples
  [](https://github.com/pulumi/pulumi/pull/15805)

- [sdk/nodejs] Make TypeScript and ts-node optional peer dependencies to
allow using user specified versions
  [](https://github.com/pulumi/pulumi/pull/15622)

- [sdk/{nodejs,python}] Allow apply to have unknown values during
updates
  [](https://github.com/pulumi/pulumi/pull/15898)

- [sdk/python] Add 'typeChecker' runtime option to the Python language
host
  [](https://github.com/pulumi/pulumi/pull/15922)
  [](https://github.com/pulumi/pulumi/pull/15725)


### Bug Fixes

- [auto] Tolerate missing stack and bookkeeping files in ProgramTest
  [](https://github.com/pulumi/pulumi/pull/15922)
  [](https://github.com/pulumi/pulumi/pull/15863)

- [cli] Fix a panic when user's home directory could not be looked up
  [](https://github.com/pulumi/pulumi/pull/15872)

- [cli] Fix some commands that didn't respect
`--disable-integrity-checking`
  [](https://github.com/pulumi/pulumi/pull/15911)

- [programgen/dotnet] Remove trailing whitespace from emitted DependsOn
resource option expressions
  [](https://github.com/pulumi/pulumi/pull/15922)
  [](https://github.com/pulumi/pulumi/pull/15892)

- [auto/go] Avoid flakyness when reading the event log from pulumi
commands
  [](https://github.com/pulumi/pulumi/pull/15856)

- [sdk/go] Fix Provider and Providers options in Go transform functions
  [](https://github.com/pulumi/pulumi/pull/15885)

- [sdk/nodejs] Handle serialization of aliases for well known native
functions
  [](https://github.com/pulumi/pulumi/pull/15873)

- [sdk/nodejs] Correctly serialise functions whose code would make use
of reserved identifiers
  [](https://github.com/pulumi/pulumi/pull/15879)

- [sdk/nodejs] Serialize function values obtained from Function.bind
  [](https://github.com/pulumi/pulumi/pull/15887)

- [sdk/python] Improve types of getters in Python SDK
  [](https://github.com/pulumi/pulumi/pull/15865)

- [sdkgen/{dotnet,go}] Fix SDK-generation when referencing shared types
in config variables
  [](https://github.com/pulumi/pulumi/pull/15772)
  [](https://github.com/pulumi/pulumi/pull/15922)


### Miscellaneous

- [sdk/nodejs] Update builtin module list for function serialization
  [](https://github.com/pulumi/pulumi/pull/15830)

- [sdk/nodejs] Set package.json engines to node >= 18
  [](https://github.com/pulumi/pulumi/pull/15845)
2024-04-15 16:41:08 +00:00
Justin Van Patten ea4fdcad58
Revert "Freeze v3.113.0 ()" ()
This reverts commit 8ff72bf9fa.

We want to get in https://github.com/pulumi/pulumi/pull/15923 before
publishing the release.
2024-04-12 18:37:22 +00:00
Justin Van Patten 8ff72bf9fa
Freeze v3.113.0 ()
### Features

- [cli] Support always fully qualifying stack names in CLI output
  [](https://github.com/pulumi/pulumi/pull/15857)

- [cli] Add --no-plugins and --no-dependencies to `pulumi install`
  [](https://github.com/pulumi/pulumi/pull/15910)

- [docs] Implement Java constructor syntax examples
  [](https://github.com/pulumi/pulumi/pull/15805)

- [sdk/nodejs] Make TypeScript and ts-node optional peer dependencies to
allow using user specified versions
  [](https://github.com/pulumi/pulumi/pull/15622)

- [sdk/{nodejs,python}] Allow apply to have unknown values during
updates
  [](https://github.com/pulumi/pulumi/pull/15898)

- [sdk/python] Adds 'typeChecker' runtime option to the Python language
host
  [](https://github.com/pulumi/pulumi/pull/15725)


### Bug Fixes

- [auto] Tolerate missing stack and bookkeeping files in ProgramTest.
  [](https://github.com/pulumi/pulumi/pull/15863)

- [cli] Fix a panic when user's home directory could not be looked up
  [](https://github.com/pulumi/pulumi/pull/15872)

- [cli] Fix some commands that didn't respect
`--disable-integrity-checking`
  [](https://github.com/pulumi/pulumi/pull/15911)

- [programgen/dotnet] Removes trailing whitespace from emitted DependsOn
resource option expressions
  [](https://github.com/pulumi/pulumi/pull/15892)

- [auto/go] Avoid flakyness when reading the event log from pulumi
commands
  [](https://github.com/pulumi/pulumi/pull/15856)

- [sdk/go] Fix Provider and Providers options in Go transform functions
  [](https://github.com/pulumi/pulumi/pull/15885)

- [sdk/nodejs] Handle serialization of aliases for well known native
functions
  [](https://github.com/pulumi/pulumi/pull/15873)

- [sdk/nodejs] Correctly serialise functions whose code would make use
of reserved identifiers
  [](https://github.com/pulumi/pulumi/pull/15879)

- [sdk/nodejs] Serialize function values obtained from Function.bind
  [](https://github.com/pulumi/pulumi/pull/15887)

- [sdk/python] Improve types of getters in Python SDK
  [](https://github.com/pulumi/pulumi/pull/15865)

- [sdkgen/{dotnet,go}] Fixes SDK-generation when referencing shared
types in config variables
  [](https://github.com/pulumi/pulumi/pull/15772)


### Miscellaneous

- [sdk/nodejs] Update builtin module list for function serialization
  [](https://github.com/pulumi/pulumi/pull/15830)

- [sdk/nodejs] Set package.json engines to node >= 18
  [](https://github.com/pulumi/pulumi/pull/15845)
2024-04-12 16:21:27 +00:00
Justin Van Patten c70d4e4e95
Prepare for v3.113.0 release ()
Tentative changelog:


### Features

- [cli] Support always fully qualifying stack names in CLI output
  [](https://github.com/pulumi/pulumi/pull/15857)

- [cli] Add --no-plugins and --no-dependencies to `pulumi install`
  [](https://github.com/pulumi/pulumi/pull/15910)

- [docs] Implement Java constructor syntax examples
  [](https://github.com/pulumi/pulumi/pull/15805)

- [sdk/nodejs] Make TypeScript and ts-node optional peer dependencies to
allow using user specified versions
  [](https://github.com/pulumi/pulumi/pull/15622)

- [sdk/{nodejs,python}] Allow apply to have unknown values during
updates
  [](https://github.com/pulumi/pulumi/pull/15898)

- [sdk/python] Adds 'typeChecker' runtime option to the Python language
host
  [](https://github.com/pulumi/pulumi/pull/15725)


### Bug Fixes

- [auto] Tolerate missing stack and bookkeeping files in ProgramTest.
  [](https://github.com/pulumi/pulumi/pull/15863)

- [cli] Fix a panic when user's home directory could not be looked up
  [](https://github.com/pulumi/pulumi/pull/15872)

- [cli] Fix some commands that didn't respect
`--disable-integrity-checking`

- [programgen/dotnet] Removes trailing whitespace from emitted DependsOn
resource option expressions
  [](https://github.com/pulumi/pulumi/pull/15892)

- [auto/go] Avoid flakyness when reading the event log from pulumi
commands
  [](https://github.com/pulumi/pulumi/pull/15856)

- [sdk/go] Fix Provider and Providers options in Go transform functions
  [](https://github.com/pulumi/pulumi/pull/15885)

- [sdk/nodejs] Handle serialization of aliases for well known native
functions
  [](https://github.com/pulumi/pulumi/pull/15873)

- [sdk/nodejs] Correctly serialise functions whose code would make use
of reserved identifiers
  [](https://github.com/pulumi/pulumi/pull/15879)

- [sdk/nodejs] Serialize function values obtained from Function.bind
  [](https://github.com/pulumi/pulumi/pull/15887)

- [sdk/python] Improve types of getters in Python SDK
  [](https://github.com/pulumi/pulumi/pull/15865)

- [sdkgen/{dotnet,go}] Fixes SDK-generation when referencing shared
types in config variables
  [](https://github.com/pulumi/pulumi/pull/15772)


### Miscellaneous

- [sdk/nodejs] Update builtin module list for function serialization
  [](https://github.com/pulumi/pulumi/pull/15830)

- [sdk/nodejs] Set package.json engines to node >= 18
  [](https://github.com/pulumi/pulumi/pull/15845)
2024-04-11 20:52:58 +00:00
Justin Van Patten 89cd536cb9
Freeze v3.112.0 ()
Tentative changelog:

### Features

- [docs] Implement constructor syntax examples for every resource in
typescript, python, csharp and go
  [](https://github.com/pulumi/pulumi/pull/15624)

- [docs] Implement YAML constructor syntax examples in the docs
  [](https://github.com/pulumi/pulumi/pull/15791)

- [engine] Send output values with property dependency information to
transform functions
  [](https://github.com/pulumi/pulumi/pull/15637)

- [engine] Add a --continue-on-error flag to pulumi destroy
  [](https://github.com/pulumi/pulumi/pull/15727)

- [sdk/go] Make `property.Map` keyed by `string` not `MapKey`
  [](https://github.com/pulumi/pulumi/pull/15767)

- [sdk/nodejs] Make function serialization work with typescript 4 and 5
  [](https://github.com/pulumi/pulumi/pull/15761)

- [sdk/python] Improve the error message when depends_on is passed
objects of the wrong type
  [](https://github.com/pulumi/pulumi/pull/15737)


### Bug Fixes

- [auto/{go,nodejs,python}] Make sure to read complete lines before
trying to deserialize them as engine events
  [](https://github.com/pulumi/pulumi/pull/15778)

- [cli/plugin] Fix installing local language plugins on Windows
  [](https://github.com/pulumi/pulumi/pull/15715)

- [engine] Don't delete stack outputs on failed deployments
  [](https://github.com/pulumi/pulumi/pull/15754)

- [engine] Fix a panic when updating provider version in a run using
--target
  [](https://github.com/pulumi/pulumi/pull/15716)

- [engine] Handle that Assets & Archives can be returned from providers
without content.
  [](https://github.com/pulumi/pulumi/pull/15736)

- [engine] Fix the engine trying to delete a protected resource caught
in a replace chain
  [](https://github.com/pulumi/pulumi/pull/15776)

- [sdkgen/docs] Add missing newline for `Coming soon!`
  [](https://github.com/pulumi/pulumi/pull/15783)

- [programgen/dotnet] Fix generated code for a list of resources used in
resource option DependsOn
  [](https://github.com/pulumi/pulumi/pull/15773)

- [programgen/{dotnet,go}] Fixes emitted code for object expressions
assigned to properties of type Any
  [](https://github.com/pulumi/pulumi/pull/15770)

- [sdk/go] Fix lookup of plugin and program dependencies when using Go
workspaces
  [](https://github.com/pulumi/pulumi/pull/15743)

- [sdk/nodejs] Export automation.tag.TagMap type
  [](https://github.com/pulumi/pulumi/pull/15774)

- [sdk/python] Wait only for pending outputs in the Python SDK, not all
pending asyncio tasks
  [](https://github.com/pulumi/pulumi/pull/15744)


### Miscellaneous

- [sdk/nodejs] Reorganize function serialization tests
  [](https://github.com/pulumi/pulumi/pull/15753)

- [sdk/nodejs] Move mockpackage tests to closure integration tests
  [](https://github.com/pulumi/pulumi/pull/15757)
2024-03-28 00:10:27 +00:00
Justin Van Patten 13ef42b072
Prepare for v3.112.0 release ()
Tentative changelog:

### Features

- [docs] Implement constructor syntax examples for every resource in
typescript, python, csharp and go
  [](https://github.com/pulumi/pulumi/pull/15624)

- [engine] Send output values with property dependency information to
transform functions
  [](https://github.com/pulumi/pulumi/pull/15637)

- [engine] Add a --continue-on-error flag to pulumi destroy
  [](https://github.com/pulumi/pulumi/pull/15727)

- [sdk/go] Make `property.Map` keyed by `string` not `MapKey`
  [](https://github.com/pulumi/pulumi/pull/15767)

- [sdk/python] Improve the error message when depends_on is passed
objects of the wrong type
  [](https://github.com/pulumi/pulumi/pull/15737)


### Bug Fixes

- [auto/{go,nodejs,python}] Make sure to read complete lines before
trying to deserialize them as engine events
  [](https://github.com/pulumi/pulumi/pull/15778)

- [cli/plugin] Fix installing local language plugins on Windows
  [](https://github.com/pulumi/pulumi/pull/15715)

- [engine] Don't delete stack outputs on failed deployments
  [](https://github.com/pulumi/pulumi/pull/15754)

- [engine] Fix a panic when updating provider version in a run using
--target
  [](https://github.com/pulumi/pulumi/pull/15716)

- [engine] Handle that Assets & Archives can be returned from providers
without content.
  [](https://github.com/pulumi/pulumi/pull/15736)

- [engine] Fix the engine trying to delete a protected resource caught
in a replace chain
  [](https://github.com/pulumi/pulumi/pull/15776)

- [sdkgen/docs] Add missing newline for `Coming soon!`
  [](https://github.com/pulumi/pulumi/pull/15783)

- [programgen/dotnet] Fix generated code for a list of resources used in
resource option DependsOn
  [](https://github.com/pulumi/pulumi/pull/15773)

- [programgen/{dotnet,go}] Fixes emitted code for object expressions
assigned to properties of type Any
  [](https://github.com/pulumi/pulumi/pull/15770)

- [sdk/go] Fix lookup of plugin and program dependencies when using Go
workspaces
  [](https://github.com/pulumi/pulumi/pull/15743)

- [sdk/nodejs] Export automation.tag.TagMap type
  [](https://github.com/pulumi/pulumi/pull/15774)

- [sdk/python] Wait only for pending outputs in the Python SDK, not all
pending asyncio tasks
  [](https://github.com/pulumi/pulumi/pull/15744)


### Miscellaneous

- [sdk/nodejs] Reorganize function serialization tests
  [](https://github.com/pulumi/pulumi/pull/15753)

- [sdk/nodejs] Move mockpackage tests to closure integration tests
  [](https://github.com/pulumi/pulumi/pull/15757)
2024-03-27 16:04:33 +00:00
Fraser Waters a47df9c27c
Fix version scripts ()
<!--- 
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/15756.

Fix the set-version script to also set the .ts file with the version
correctly.

Fix reversion to replace the currently expected hardcoded version with
the given dynamic version.

## 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-22 14:31:57 +00:00
joeduffy 5967259795 Add license headers 2018-05-22 15:02:47 -07:00
Joe Duffy 28033c22bc
Allow multiple Pulumi SDKs side-by-side ()
Prior to this change, if you ended up with multiple Pulumi SDK
packages loaded side-by-side, we would fail in obscure ways.  The
reason for this was that we initialize and store important state
in static variables.  In the case that you load the same library
twice, however, you end up with separate copies of said statics,
which means we would be missing engine RPC addresses and so on.

This change adds the ability to recover from this situation by
mirroring the initialized state in process-wide environment
variables.  By doing this, we can safely recover simply by reading
them back when we detect that they are missing.  I think we can
eventually go even further here, and eliminate the entry point
launcher shim altogether by simply having the engine launch the
Node program with the right environment variables.  This would
be a nice simplification to the system (fewer moving pieces).

There is still a risk that the separate copy is incompatible.
Presumably the reason for loading multiple copies is that the
NPM/Yarn version solver couldn't resolve to a shared version.
This may yield obscure failure modes should RPC interfaces change.
Figuring out what to do here is part of .

This fixes  and .
2018-04-07 08:02:59 -07:00
Pat Gavlin a23b10a9bf
Update the copyright end date to 2018. ()
Just what it says on the tin.
2018-03-21 12:43:21 -07:00
Joe Duffy 16ade183d8
Add a manifest to checkpoint files ()
This change adds a new manifest section to the checkpoint files.
The existing time moves into it, and we add to it the version of
the Pulumi CLI that created it, along with the names, types, and
versions of all plugins used to generate the file.  There is a
magic cookie that we also use during verification.

This is to help keep us sane when debugging problems "in the wild,"
and I'm sure we will add more to it over time (checksum, etc).

For example, after an up, you can now see this in `pulumi stack`:

```
Current stack is demo:
    Last updated at 2017-12-01 13:48:49.815740523 -0800 PST
    Pulumi version v0.8.3-79-g1ab99ad
    Plugin pulumi-provider-aws [resource] version v0.8.3-22-g4363e77
    Plugin pulumi-langhost-nodejs [language] version v0.8.3-79-g77bb6b6
    Checkpoint file is /Users/joeduffy/dev/code/src/github.com/pulumi/pulumi-aws/.pulumi/stacks/webserver/demo.json
```

This addresses .
2017-12-01 13:50:32 -08:00