pulumi/pkg/resource
Pat Gavlin f385127b6a [engine] expand dependencies in step gen
These changes implement a higher-level fix for #7780 by expanding the
dependencies of a resource as part of step generation.

Dependency expansion is responsible for expanding dependencies on
component resources into dependencies on the component resource _and_
the component resource's descendents _at the time the dependent is
registered_.

For example, given a dependency on Comp1 in the following parent/child
graph:

              Comp1
         _______|__________
         |      |          |
      Cust1   Comp2      Comp3
             ___|___       |
             |     |       |
           Cust2  Cust3  Comp4
             |             |
           Cust4         Cust5

The expanded dependencies set will be [Comp1, Cust1, Comp2, Comp3,
Cust2, Cust3, Comp4, Cust5]. Notably, Cust4 is *not* a member of the
set because it is a child of a custom resource.

These changes are complementary to the changes in #7788. The primary
benefit of the early expansion approach is that the expanded
dependencies will be present in events and the statefile, so downstream
consumers do not need to replicate the expansion logic in order to
understand the totality of a resource's dependencies.
2021-08-20 10:22:57 -07:00
..
analyzer [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
deploy [engine] expand dependencies in step gen 2021-08-20 10:22:57 -07:00
edit [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
graph Include transitive children in dependency list for deletes (#7788) 2021-08-18 18:26:36 -07:00
provider Add provider.MainWithOptions helper function (#7598) 2021-07-29 10:31:09 -07:00
stack Error instead of assert on invalid resource in state file (#7065) 2021-05-17 09:47:28 +01:00
testdata support jar files 2020-08-10 14:15:35 -07:00