[Bug]: remaining cargo metadata validation steps omit --format-version=1
- Lenguaje dominante
- Rust
- Estrellas
- 2.3k
- Forks
- 231
- Merge medio
- 2 h 49 min
- PR fusionados (30 d)
- 589
Descripción
# Remaining cargo metadata validation steps omit --format-version 1
## Symptom
The release and nightly pipelines still call `cargo metadata` without an
explicit format version in four places:
`.github/workflows/linux-binaries.yml` lines 129 and 146, and
`.github/workflows/nightly-artifacts.yml` lines 161 and 207. When cargo
changes its default metadata output format, these steps print the same
compatibility warning that PR #2577 already eliminated for the three
calls in `ci.yml`.
## Root cause
#2577 pinned `--format-version 1` on the `ci.yml` validation steps and
the strict assertions in `check-github-config.test.mjs` that pin them,
but the two shared build workflows (`linux-binaries.yml` and
`nightly-artifacts.yml`) predate that change and were left with the bare
invocation.
## Fix
Pass `--format-version 1` explicitly in all four remaining steps, and
sync the strict command assertions in `check-github-config.test.mjs`
(lines 705, 801, 802) that pin these steps, mirroring the #2577 approach.
## Verification
`pnpm run check:github-config` passes both stages locally (12 workflow
files parsed; contract tests 19 pass / 0 fail / 1 environment-dependent
skip covered by an equivalent assertion). Remote CI is the final judge.
Assisted-by: AI agent (Claude)
Guía de contribución
Línea de trabajo
Comienza con los cuatro pasos de cargo metadata en .github/workflows/linux-binaries.yml y .github/workflows/nightly-artifacts.yml; después, inspecciona las aserciones estrictas de comandos relacionadas en check-github-config.test.mjs alrededor de las líneas 705, 801 y 802. Ejecuta pnpm run check:github-config; se considera terminado cuando las cuatro invocaciones de workflow y sus aserciones usan explícitamente --format-version 1 y las comprobaciones pasan.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github-actions, javascript, rust
- Área
- build-system, ci-cd, testing-qa
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 88/100