GCWing / GCWing/OpenBitFun

[Bug]: remaining cargo metadata validation steps omit --format-version=1

Open Beginner friendly
#2,616 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.2k
Forks
229
Avg merge
2h 46m
Merged PRs (30d)
577

Description

# 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)

Contributor guide

Open the contributing guide

Research direction

Start with the four cargo metadata steps in .github/workflows/linux-binaries.yml and .github/workflows/nightly-artifacts.yml, then inspect the related strict command assertions in check-github-config.test.mjs around lines 705, 801, and 802. Run pnpm run check:github-config; done means all four workflow invocations and their assertions explicitly use --format-version 1 and the checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript, rust
Domain
build-system, ci-cd, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.