Open jaxxstorm opened 4 years ago
The script @jaxxstorm/pulumi-action-config/workflow
imports itself. I absolutely agree it shouldn't segfault though! I can reproduce this with:
// foo.js
import * as f from 'foo';
I thought we guarded against cycles in imports; apparently not, or at least it has broken.
This might be hard to track down, but here goes.
I have a crappy library: https://github.com/jaxxstorm/pulumi-action-config
And a crappy js workflow file:
you can see this here: https://github.com/jaxxstorm/pulumi-action-config/blob/master/workflow.js
I'm running
jk generate workflow.js
and getting a nasty panic:This only happens when I'm including my library, which is a reference to a git URL in my
package.json
:I'm sure there's something wrong with my crappy library, but jk shouldn't panic :)