pulumi/sdk/nodejs/cmd/pulumi-language-nodejs
Thomas Gummerer 9063974f70 implement programmatic default providers in the engine and Go SDK
Implement default providers in the engine and the Go SDK first (Go SDK
for no other reason other than I'm most familiar with that language).

The SDK sends a RegisterDefaultProvider request to the engine, which
adds the provider to its default provider map, and explicitly
disallows creating an implicit default provider going forward.

The locking around this happens on the SDK side, since we need to
disallow RegisterResource requests happening at the same time as
DefaultProvider requests.  Here we can simply take a read lock before
creating the RegisterResource goroutine, and a write lock for the
duration of the RegisterDefaultProvider call.

This way we can have RegisterResource calls happen in parallel, but
the RegisterDefaultProvider call will not go ahead before the read
lock is released.  Similarly, the next RegisterResource call will be
locked until the RegisterDefaultProvider call has finished.
2024-05-02 19:04:59 +02:00
..
testdata Add large string conformance test (#16034) 2024-04-25 08:14:34 +00:00
go.mod Changelog and go.mod updates for v3.114.0 (#16075) 2024-04-27 00:39:30 +00:00
go.sum Bump go modules (#16051) 2024-04-25 14:30:00 +00:00
language_test.go Run NodeJS conformance tests in parallel (#16078) 2024-04-28 11:02:51 +00:00
main.go upgrade to latest version of golangci-lint (#15977) 2024-04-19 06:20:33 +00:00
main_test.go Pass root and main info to language host methods (#14654) 2023-12-10 17:30:51 +00:00
proxy.go implement programmatic default providers in the engine and Go SDK 2024-05-02 19:04:59 +02:00
proxy_unix.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
proxy_windows.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00