pulumi/pkg/resource/deploy
Pat Gavlin 86f20b8b69 [engine] Patch MLC source positions
When a user program creates a multi-lanugage component, the engine
issues a construct call to the component's provider rather than
issuing an actual resource registration. Instead, the component's
provider is responsible for registering the component resource. This
creates a problem for source positions: because the component provider
is registering the component, the component's source location will be
recorded as the position of the registration in the component provider
rather than in the user program.

These changes address this problem by starting a proxy per component
instantiation that patches the source position of the MLC itself when
it is registered and clears the source positions for other resources
registered by the MLC.

Instead of clearing source positions for non-root resources registered
by MLCs, future changes should add support for translating the reported
positions for these resources to component-relative positions.
2023-07-14 13:08:09 -07:00
..
deploytest [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
providers Don't try to install provider during schema loading unless missing 2023-06-28 14:12:17 +01:00
builtins.go Send old inputs to diff and update 2023-06-21 21:04:50 +01:00
deployment.go Consolidated Target parameters 2023-06-08 08:42:03 -07:00
deployment_executor.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
deployment_executor_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
deployment_test.go Remove source_fixed 2022-11-08 15:55:45 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
plan.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
snapshot.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot_test.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
source.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
source_error.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_eval.go [engine] Patch MLC source positions 2023-07-14 13:08:09 -07:00
source_eval_test.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
source_null.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_query.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
source_query_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
state_builder.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
state_builder_test.go Non-mutating snapshot normalization (#10128) 2022-07-18 14:04:19 -04:00
step.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
step_executor.go Mark outputs secret if there is a matching secret input. 2023-06-23 09:24:21 -07:00
step_generator.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
step_generator_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
target.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00