hashicorp / hashicorp/hc-install

product: Consider using logger and capture stdout/stderr in GetVersion

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
62
Forks
27
Avg merge
2d 5h
Merged PRs (30d)
4

Description

Currently getting product version may fail in some rare cases and while we would report this as an error, we don't explicitly capture the stdout or stderr to make debugging of such problems easier.

https://github.com/hashicorp/hc-install/blob/7e86c538be9d48d3ff55df4553b39b1527d08664/product/terraform.go#L29-L49

See also https://github.com/hashicorp/terraform-plugin-sdk/issues/823

Contributor guide

Open the contributing guide

Research direction

Start with product/terraform.go at lines 29-49 and review how GetVersion currently reports failures. Check the related Terraform plugin SDK issue for context, then trace the existing logging and command-output handling. Done means version lookup failures preserve useful stdout/stderr diagnostics and use the project’s logger.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, terraform
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.