pulumi/pkg
Thomas Gummerer a0ad0ad243
state move: revert dest changes if source can't be saved (#17208)
As explained in https://github.com/pulumi/pulumi/pull/17205, we need to
save one stack after another when doing a state move. The mentioned PR
introduces a better error output, so the user can get themselves out of
the broken situation.

However we can do a bit better. If we fail to save the source stack for
any reason, we can still try to revert the changes from the destination
stack, bringing us back to the original situation, without the user
having to intervene manually, which is usually preferable for users. If
we fail to do *that*, we still display the list of commands the user can
use to get themselves out of the situation.

Unfortunately this makes that latter output very hard to test, since
we'd have to first succeed in saving the destination stack and on the
next attempt fail, and our test infrastructure is not quite set up for
that.

This is based on https://github.com/pulumi/pulumi/pull/17205, and should
be another improvement to the user experience in that case.

---------

Co-authored-by: Will Jones <will@sacharissa.co.uk>
2024-09-10 12:38:29 +00:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
backend Add LoginManager to backend package (#17199) 2024-09-10 09:04:49 +00:00
cmd/pulumi state move: revert dest changes if source can't be saved (#17208) 2024-09-10 12:38:29 +00:00
codegen [go] Allow output-versioned invokes to resolve and maintain secrets (#17132) 2024-09-09 12:57:43 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Fix gatherPluginsFromSnapshot incorrectly spec'ing parameterized providers (#17218) 2024-09-10 10:22:53 +00:00
graph Adds a flag to graph command to insert fragment (#14858) 2024-01-08 22:03:08 +00:00
importer [cli/import] Fix undefined variable errors in code generation when imported resources use a parent or provider (#16786) 2024-07-25 13:53:44 +00:00
operations Move resource.URN to urn.URN (#15689) 2024-03-14 15:28:32 +00:00
resource Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
secrets Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
testing/integration Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Replace pkg/errors.Wrap with fmt.Errorf (#17201) 2024-09-09 11:11:46 +00:00
go.sum Update to yaml v1.10 (#17154) 2024-09-04 13:51:42 +00:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.