Enhancement: read resolved Terraform module versions from `.terraform/modules/modules.json`

Abierto
#621 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

  • #655 de @vibgrate-team — cerrado sin fusionar
  • #705 de @noahkhomer18 — cerrado sin fusionar

Evaluación

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

Línea de trabajo

Start with src/core-open/scanners/terraform-scanner.ts and the existing .terraform.lock.hcl handling; check the Terraform scanner fixtures and tests for how resolved versions are asserted. Add coverage for a modules.json entry with version 5.8.1, the missing or unreadable file fallback, and update the lock-file note in DOCS.md. Done when the fixture reports resolvedVersion 5.8.1 and output without the file stays unchanged.

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

Descripción

enhancement

Context

For providers, src/core-open/scanners/terraform-scanner.ts reads .terraform.lock.hcl and reports the exact resolvedVersion. Modules have no lock file, so a constraint like version = "~> 5.0" is reported with resolvedVersion: null and drift is computed from the lowest version the range allows. After terraform init (or tofu init), the version actually installed for each module is recorded in .terraform/modules/modules.json (Modules[].Source / Version).

What to do

  • When .terraform/modules/modules.json exists next to the configuration, use its Version for matching registry module sources as resolvedVersion.
  • Fall back to today's behaviour when the file is missing or unreadable.
  • Document the behaviour in DOCS.md next to the existing lock-file note.

Acceptance

  • A fixture with version = "~> 5.0" and a modules.json entry at 5.8.1 reports resolvedVersion 5.8.1.
  • Without modules.json, output is unchanged.
  • DOCS.md mentions the file.
Lenguaje dominante
TypeScript
Estrellas
4
Forks
3
Merge medio
1 d 22 h
PR fusionados (30 d)
76

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 vibgrate/cli

Todos los issues de vibgrate/cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.