Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the stdout content with active wrapper #18

Open
kislerdm opened this issue Oct 31, 2023 · 2 comments
Open

Fix the stdout content with active wrapper #18

kislerdm opened this issue Oct 31, 2023 · 2 comments

Comments

@kislerdm
Copy link
Contributor

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
Copy link

skyf0l commented Mar 9, 2024

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 (hashicorp/setup-terraform#20).

@caerulescens
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants