mirror of https://github.com/pulumi/pulumi.git
07ddbca9ea
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> |
||
---|---|---|
.. | ||
display | ||
diy | ||
filestate | ||
httpstate | ||
state | ||
apply.go | ||
apply_test.go | ||
backend.go | ||
backend_test.go | ||
cancellation_scope.go | ||
doc.go | ||
errors.go | ||
inmemoryPersister.go | ||
mock.go | ||
policypack.go | ||
query.go | ||
snapshot.go | ||
snapshot_test.go | ||
stack.go | ||
updates.go | ||
watch.go |