Check the Terraform version from .terraform-version

オープン
#68 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Utkarsh3725 がすでに取り組んでいます。

2026年11月13日 から。

  • #74 @Utkarsh3725 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python, terraform
領域
cli, devops

調査の方向性

Start in src/devready/checks/runtimes.py, where the RUNTIMES table and the _first_version pin extractor live, then check open pull request #74 before writing anything. Also look at the explain.py entries, docs/checks.md and the existing unit tests for the other runtime pins. Done means .terraform-version with 1.7.5 gives one warn when Terraform 1.5 is installed, latest gives no pin result, and pytest, ruff check and ruff format --check all pass.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

Problem: Terraform repos pin the CLI with .terraform-version (tfenv/tenv) or .tool-versions (terraform 1.7.5). A wrong Terraform version can rewrite state in a newer format, so it is worth catching early. DevReady does not check it.

Do:

  • Add a terraform row to RUNTIMES in src/devready/checks/runtimes.py (exe terraform, args version, .tool-versions name terraform).
  • Pin file: .terraform-version with _first_version. Values such as latest or min-required must give no result (the extractor returns None). Id project.terraform.pin, miss = warn.
  • Add the explain.py entry, a docs/checks.md row, a CHANGELOG line, the README check list mention and unit tests (plain version, latest, missing terraform, too old).

Done when:

  • .terraform-version = 1.7.5 with Terraform 1.5 installed gives one warn.
  • .terraform-version = latest gives no pin result.

Out of scope: required_version inside *.tf files (needs a file glob; can be a follow-up issue).

Done when: see the list above, plus pytest, ruff check and ruff format --check pass.

Notes:

  • Read-only: never execute project files, never echo file contents; only a validated version or spec reaches the report.
  • No network, no new runtime dependencies (Python >= 3.10 stdlib only).
  • Comment below to claim it and I will assign you.
主要言語
Python
スター
2
フォーク
3
平均マージ
10時間 51分
マージ済み PR(30日)
40

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Evalogical-Inc/devReady のほかの issue

Evalogical-Inc/devReady の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。