m

    most-mouse-38002

    3 months ago
    Running
    flux bootrrap
    within a Pulumi Command Pulumi reports errors when there is no error running the underlying command. I don’t really understand why, does Pulumi assume errors whilst receiving multiple lines of output?
    m

    miniature-musician-31262

    3 months ago
    Do you know what the exit code of the command is?
    I ask because the docs suggest anything nonzero is considered a failure: https://www.pulumi.com/registry/packages/command/api-docs/local/command/
    m

    most-mouse-38002

    3 months ago
    Yes, it exits with 0 at the end
    ❯ echo $? 
    0
    However, every line from the Flux CLI is being outputted as an error by Pulumi
    Diagnostics:
      command:local:Command (strap):
        error: ► connecting to <http://github.com|github.com>
        ...
        error: ✔ notification-controller: deployment ready
        error: ✔ source-controller: deployment ready
        error: ✔ all components are healthy
     
    Resources:
        + 2 created
    
    Duration: 35s
    Perhaps lines are outputted to Stderr in Flux CLI.
    Confirmed: Flux used stderr for runtime output, and stdout for manifest creation so you can
    >
    it to files