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 · 1 comment
Open

Fix the stdout content with active wrapper #18

kislerdm opened this issue Oct 31, 2023 · 1 comment

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 instead of the value is outputted when wrapper 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).

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

2 participants