pulumi/pkg/backend
Thomas Gummerer 07ddbca9ea
don't make backups if the object doesn't exist (#18060)
We're currently trying to backup files unconditonally in this function.
However the file doesn't necessarily exist when we call it (by design).

In the future we want to introduce retries for at least the
bucket.Delete function, so calling that on a file that doesn't exist
would slow down the process. It really only makes sense to create a
backup if the file does actually exist, so do that. If we get an error
back from the exists function we still go ahead and try to create the
backup anyway.

This needs to be merged before
https://github.com/pulumi/pulumi/pull/18059

---------

Co-authored-by: Will Jones <will@sacharissa.co.uk>
2024-12-17 17:05:25 +00:00
..
display Move `sdk/go/common/channel` to `pkg` (#17895) 2024-12-02 16:25:50 +00:00
diy don't make backups if the object doesn't exist (#18060) 2024-12-17 17:05:25 +00:00
filestate Rename filestate to DIY (#15314) 2024-01-30 15:53:10 +00:00
httpstate Check language plugins in about tests (#18007) 2024-12-11 17:45:19 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
apply_test.go Make `engine.NewEvent` type safe (#14590) 2023-11-16 16:54:03 +00:00
backend.go Pass ESC Environments on stack update (#17665) 2024-11-07 18:54:46 +00:00
backend_test.go Allow anything in resource names (#14107) 2023-11-20 08:59:00 +00:00
cancellation_scope.go Implement plugin download cancellation (#17621) 2024-11-12 18:04:25 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
inmemoryPersister.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
mock.go Break out `cmd`-level backend code (#17926) 2024-12-05 13:43:53 +00:00
policypack.go Replace `result.Result` with native errors (#17044) 2024-08-22 14:39:59 +00:00
query.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
snapshot.go Check language plugins in about tests (#18007) 2024-12-11 17:45:19 +00:00
snapshot_test.go Check language plugins in about tests (#18007) 2024-12-11 17:45:19 +00:00
stack.go Allow `Backend`s to define `DefaultSecretManager`s (#17370) 2024-09-26 08:52:24 +00:00
updates.go [cli] Include config from ESC in `pulumi config` (#14560) 2023-11-21 10:44:45 +00:00
watch.go Enable some more linting rules (#17456) 2024-10-03 17:37:13 +00:00