Please add an option to download/install terraform
还没有人认领这个 Issue。
评估
调研方向
失败指向 hooks/terraform-fmt.sh;从这里开始,检查此 hook 在 pre-commit.ci 上是如何调用的。添加所请求的 Terraform 安装选项,并验证在未安装 Terraform 时 terraform-fmt 能够成功运行,同时保留 Terraform 已安装时的当前行为。
由索引模型根据 Issue 内容生成。
描述
Describe the solution you'd like
I would like to be able to use terraform-fmt on pre-commit.ci, the hosted CI pre-commit service, but unfortunately I cannot because terraform doesn't come pre-installed, and the hooks here do not install/bundle it.
Terraform fmt............................................................Failed
- hook id: terraform-fmt
- exit code: 127
/pc/clone/RKgVfIZxQCiSAX665qKF9Q/hooks/terraform-fmt.sh: line 15: terraform: command not found
It'd be nice if there was a way to say that you need terraform installed as part of the hook.
Describe alternatives you've considered
Not running terraform hooks on pre-commit.ci.
- 主要语言
- Shell
- 星标
- 546
- 派生
- 167
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
gruntwork-io/pre-commit 的其他 Issue
-
Documentation for shellcheck should include that it is configurable with a .shellcheckrc可能重新可做 关联的 PR 已关闭且未合并。 未关闭enhancement
难度 1/5 1 小时以内 新手友好度 68/100
gruntwork-io/pre-commit#79 ·
-
Support args for terraform-fmt, remove hardcoded args.可能重新可做 @ZachGoldberg 于 387 天前认领,目前没有进行中的 PR。 未关闭enhancement
gruntwork-io/pre-commit#138 · 3 个 reaction · 已指派 1 人 ·
-
Sentinel Fmt Hook Does Not Work可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 38/100
gruntwork-io/pre-commit#121 ·
-
enhancement
难度 3/5 1-2 天 新手友好度 35/100
gruntwork-io/pre-commit#111 · 1 个 reaction ·
-
bug
难度 1/5 1 小时以内 新手友好度 45/100
gruntwork-io/pre-commit#110 ·
查看 gruntwork-io/pre-commit 的全部 Issue
相似的 Issue
-
rebrand-literal-gutter: uhttpd section-vocabulary check trips on a COMMENT (uhttpd.luci in 92-tollgate-admin-setup:178)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
OpenTollGate/tollgate-module-basic-go#723 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 82/100
stephrobert/pavois#390 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 1/5 1-3 小时 新手友好度 82/100
TIBCOSoftware/be-tools#408 ·
-
enhancement
难度 1/5 1 小时以内 新手友好度 92/100