opentofu / setup-opentofu

Mozilla Public License 2.0
89 stars 10 forks source link

Fix the stdout content with active wrapper #18

Open kislerdm opened 1 year ago

kislerdm commented 1 year ago

As a user of the setup-opentofu action, I want to rely on it when using the wrapper for stdout processing.

Problem

The tofu stdout's content captured by the wrapper is prefixed with the command yielding it. Apparently, it's caused by the default behaviour of @actions/exec: see the condition.

Proposed solutions

Propagate stdout/err without relying on @action/exec. See new release of setup-terraform and the fix for context.

skyf0l commented 8 months ago

Got a related error too, [command]/home/runner/work/_temp/14ffcfc6-c303-48c8-abdb-ddc08da81f56/tofu-bin output -raw xxx is outputted instead of the value when wrapped up with $() in bash. I solved it with terraform_wrapper: false. This seems to be an old error that was also present in setup-terraform (https://github.com/hashicorp/setup-terraform/issues/20).

caerulescens commented 4 months ago

@skyf0l I just had the same issue; solved it the same way.