pulumi/sdk/go/common
Luke Hoban 9e955241fc
Make credentials.json file writes concurrency safe (#5857)
Running `pulumi` operations in parallel could occasionally result in truncating the `~/.pulumi/credentials.json` file and reading that truncated file from another process before the content could be written.

Instead, use `os.Rename` to atomically replace the file contents.

Concurrent `pulumi` operations could still compete for who gets to write the file first, and could lead to surprising results in some extreme cases.   But we should not see the corrupted file contents any longer.

Fixes #3877.
2020-12-03 15:07:55 -08:00
..
apitype [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
constant expose execution kind via update metadata (#5258) 2020-08-31 09:07:59 -07:00
diag Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
encoding Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource Fix a few issues with resource references. (#5804) 2020-11-23 11:15:10 -08:00
testing Add PULUMI_BACKEND_URL env var (#5789) 2020-11-22 15:27:59 -08:00
tokens Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
tools switch os/user with luser 2020-07-27 14:44:08 -07:00
util Fix test 2020-11-12 09:20:33 -08:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Make credentials.json file writes concurrency safe (#5857) 2020-12-03 15:07:55 -08:00