hashicorp / hashicorp/hcl

Feature request: add `hcfmt` binary as a release asset

Open
#779 1 comment 1 reaction 0 assignees View on GitHub
enhancement gohcl
Dominant language
Go
Stars
5.8k
Forks
657
Avg merge
20h 36m
Merged PRs (30d)
6

Description

Could it be possible to add `hcfmt` CLI tool binary as a release asset so it could be downloaded without compiling it beforehand in CI?

Cf https://github.com/jenkinsci/docker/issues/2143, I'd like to add a lint/validation of the docker bake files we're using to build official Jenkins controller and agents images in our CI, and https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt is the closest to an official tool I found to achieve this goal.

Note: I'm willing to contribe the corresponding change if needed/accepted 🙂

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the hclfmt entry point under cmd/hclfmt and inspect the repository's release configuration and build process. Determine how release artifacts are produced, then add a downloadable hcfmt binary asset and verify that the release workflow publishes it without requiring users to compile it.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.