pulumi/sdk/go/common/workspace
Levi Blackstone a2f995d2bb
[sdk/go] Cache loaded configuration files (#6576)
* [sdk/go] Cache loaded configuration files

Previously, the CLI did not cache configuration files, which
required a read from disk + unmarshalling + validation each
time a consumer needed to read one of these configurations.
This change introduces global caches for each type of Pulumi
configuration file (Project, ProjectStack, PolicyPackProject, and
PluginProject). The configuration is cached after the first request
and the cached value will be used for any subsequent operations.

Important note: The global configurations are not concurrency safe,
but this same problem exists using the previous method of
reading/writing config files on disk. Synchronization
will be added in a follow up change to allow for concurrency safe config
operations.
2021-03-19 10:52:12 -06:00
..
creds.go Add support for pulumi logout --all (#6101) 2021-01-15 13:38:58 +00:00
creds_test.go Re-apply #5857 (#5893) 2020-12-08 17:38:59 -08:00
loaders.go [sdk/go] Cache loaded configuration files (#6576) 2021-03-19 10:52:12 -06:00
paths.go Support locking on filestate logins (#2697) 2021-03-16 14:00:47 +11:00
plugins.go [cli] Add ability to consume arm64 plugins from pulumi cli (#6492) 2021-03-10 16:28:55 +00: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 [sdk/go] Cache loaded configuration files (#6576) 2021-03-19 10:52:12 -06: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 Make template repository URL and ref modifiable (#6545) 2021-03-18 16:31:37 +00: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