pulumi/pkg
Will Jones 62293f05f7
Improve snapshot integrity panics depending on operation (#17144)
Snapshot integrity errors generally happen for one of two reasons:

* We just *wrote* a snapshot with an issue.
* We just attempted to *read* a snapshot with an issue.

As much as possible, we want to capture errors and issues at the point
of *writing* the snapshot, since that will generally be where the bug
that caused the integrity issue lies. This commit updates snapshot
integrity errors to carry awareness of whether they happened during a
read or write, and modifies the panic message to nudge users to hunt
down the failing write operation if the panic they are seeing relates to
a read.


![image](https://github.com/user-attachments/assets/6d91b5ea-95f5-470b-992f-1abfa116c838)

---------

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
Co-authored-by: Eric Rudder <ericrudder@users.noreply.github.com>
2024-09-04 21:22:18 +00:00
..
asset Move some asset code to pkg (#15162) 2024-01-17 11:30:37 +00:00
authhelpers Add tests for gcpauth pkg (#13926) 2023-09-13 11:27:03 +00:00
backend Improve snapshot integrity panics depending on operation (#17144) 2024-09-04 21:22:18 +00:00
cmd/pulumi Improve snapshot integrity panics depending on operation (#17144) 2024-09-04 21:22:18 +00:00
codegen Fix bug in param loader (#17148) 2024-09-04 07:17:09 +00:00
display Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
engine Fix snapshot integrity on pending replacement (#17146) 2024-09-04 10:52:43 +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 Improve snapshot integrity panics depending on operation (#17144) 2024-09-04 21:22:18 +00:00
secrets Log error in symmetricCrypterFromPhraseAndState (#17058) 2024-08-23 15:23:53 +00:00
testing/integration Switch back to `os/user` to get the current user (#17125) 2024-08-31 18:54:35 +00:00
util Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Move GetCloudInsecure to pkg workspace (#17112) 2024-08-30 14:19:07 +00:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Update to yaml v1.10 (#17154) 2024-09-04 13:51:42 +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.