pulumi/sdk/go/common
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
..
apitype [automation/go] - Expose structured logging (#6436) 2021-03-10 20:49:48 -08: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 copy/paste bug in provider_server.go (#6370) 2021-02-17 16:56:47 -08:00
testing Support locking on filestate logins (#2697) 2021-03-16 14:00:47 +11: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 Add support when GOPATH has multiple folders (#6506) 2021-03-11 21:11:32 +00:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace [sdk/go] Cache loaded configuration files (#6576) 2021-03-19 10:52:12 -06:00