pulumi/sdk/go/common/workspace
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
..
creds.go Make credentials.json file writes concurrency safe (#5857) 2020-12-03 15:07:55 -08:00
creds_test.go Make credentials.json file writes concurrency safe (#5857) 2020-12-03 15:07:55 -08:00
paths.go switch os/user with luser 2020-07-27 14:44:08 -07:00
plugins.go Improve the output when installing plugins (#5808) 2020-11-21 08:02:05 -08:00
plugins_install_nodejs_test.go Install plugin dependencies (#5353) 2020-09-14 13:54:26 -07:00
plugins_install_python_test.go Install plugin dependencies (#5353) 2020-09-14 13:54:26 -07:00
plugins_install_test.go Fix plugin install failures on Windows (#5759) 2020-11-16 09:44:29 -08:00
plugins_test.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
project.go Install plugin dependencies (#5353) 2020-09-14 13:54:26 -07:00
project_test.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
settings.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
templates.go Handle blank project names in 'new' (#5504) 2020-10-05 13:40:24 -07:00
templates_test.go Handle blank project names in 'new' (#5504) 2020-10-05 13:40:24 -07:00
workspace.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00