Check the Terraform version from .terraform-version

Abierto
#68 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Utkarsh3725 ya está trabajando en esto.

Desde el 13/11/2026.

  • #74 de @Utkarsh3725 — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python, terraform
Área
cli, devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
2
Forks
3
Merge medio
10 h 51 min
PR fusionados (30 d)
40

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Evalogical-Inc/devReady

Todos los issues de Evalogical-Inc/devReady

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.