sparse-intern-71089
05/12/2020, 4:14 PMwonderful-dog-9045
05/12/2020, 4:30 PMfaint-table-42725
05/12/2020, 4:48 PM@pulumi/pulumi
will initialize the pulumi runtime. Part of that is establishing the necessary setup for things like stack transformations.wonderful-dog-9045
05/12/2020, 4:50 PMwonderful-dog-9045
05/12/2020, 4:51 PMwonderful-dog-9045
05/12/2020, 4:51 PMregisterStackTransformation
because I imported runtime
from @pulumi/pulumi
.wonderful-dog-9045
05/12/2020, 4:53 PMswift-lunch-74411
05/12/2020, 5:13 PMfaint-table-42725
05/12/2020, 5:32 PMimport * as pulumi from @pulumi/pulumi
?wonderful-dog-9045
05/12/2020, 6:03 PMwonderful-dog-9045
05/12/2020, 6:04 PMwonderful-dog-9045
05/12/2020, 6:21 PMwonderful-dog-9045
05/12/2020, 6:34 PMthrow new Error("init abort");
here https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/stack.ts#L71. Looks like I can do a whole pulumi up
(without autotags), and initialize
never runs.
very strangewonderful-dog-9045
05/13/2020, 10:59 AM@pulumi/pulumi
has the side-effect of invoking the initialisation? I cannot find it in the code where this is happening.wonderful-dog-9045
05/13/2020, 10:59 AMwonderful-dog-9045
05/13/2020, 11:02 AMpulumi up
invokes the initialisation and somehow ends up with a different copy of the @pulumi/pulumi
package, which would explain why the initialisation of the package that I am interacting with never gets invoked.faint-table-42725
05/13/2020, 5:26 PM@pulumi/pulumi
will also bring in the runtime. It’s entirely possible you somehow have two copies of @pulumi/pulumi
depending on how your dependencies are setup. You can easily verify this via your package-lock.json
or yarn.lock
wonderful-dog-9045
05/14/2020, 7:59 AMpulumi up
loads its own, regardless of package-lock?faint-table-42725
05/14/2020, 4:04 PMfaint-table-42725
05/14/2020, 4:05 PMwonderful-dog-9045
05/14/2020, 4:28 PMwonderful-dog-9045
05/14/2020, 4:30 PMwonderful-dog-9045
05/14/2020, 4:41 PMwonderful-dog-9045
05/29/2020, 8:25 PMwonderful-dog-9045
05/29/2020, 8:25 PMwonderful-dog-9045
05/29/2020, 8:26 PMwonderful-dog-9045
05/29/2020, 8:26 PM