pulumi/pkg/engine
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
..
lifecycletest [engine] Patch MLC source positions 2023-07-14 13:08:09 -07:00
deployment.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
destroy.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
detailedDiff.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
detailedDiff_test.go [display] Refactor diff translation and display. (#9363) 2022-04-07 12:05:33 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
engine.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
errors.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
events.go [apitype] Add RetainOnDelete to StepEventStateMetadata 2023-06-26 12:50:39 -07:00
events_test.go Do not panic when sending events to closed emitter (#10489) 2022-08-25 12:43:10 -04:00
eventsink.go chore: WriteString(Sprintf(..)) => Fprintf(..) 2023-03-01 13:22:33 -08:00
import.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
journal.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
plugin_host.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
plugins.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
plugins_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
project.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
query.go Pass PULUMI_CONFIG through to provider plugins 2023-04-05 10:17:18 +01:00
refresh.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
snapshot.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
update.go [engine] Add support for source positions 2023-07-10 14:35:40 -07:00
update_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00