Skip to content

docs: gaze init --ci enforces per-variant --gaze-version floors (v2.3.0 Go, v2.7.0 Node/Python) #496

Backlog

Description

@jflowers

What changed

gaze init --ci now enforces a per-variant minimum version (floor) on the --gaze-version pin instead of applying one floor to every project type. Go repositories (detected via go.mod) keep the v2.3.0 floor — the first release containing the reusable AI-report workflow. Node repositories (package.json) and Python repositories (pyproject.toml) get a v2.7.0 floor — the first release whose reusable workflow defines the external-analyzer inputs their templates pass (analyzer, packages, setup, node-version, python-version).

Previously a pin between the two floors was accepted in a Node or Python repository: gaze init --ci --gaze-version v2.6.0 scaffolded a caller pinned to [email protected], and GitHub rejected that workflow at load time because its with: block names inputs the called workflow does not define. The consumer's AI report never ran, and the failure surfaced far from the command that caused it. That invocation now fails closed at scaffold time, before any file is written, with the variant and both remedies in the error:

gaze version "v2.6.0" cannot pin the Node CI workflow: its analyzer inputs first ship in v2.7.0; install gaze from a release tag (>= v2.7.0) or pass --gaze-version

The Python variant produces the same message with "Python" in place of "Node". Go repositories keep the existing message and floor byte-identical:

gaze version "v2.2.0" cannot pin the CI workflow: the reusable AI-report workflow first ships in v2.3.0; install gaze from a release tag (>= v2.3.0) or pass --gaze-version

Why it matters

The failure moves from GitHub workflow load time — where its connection to gaze init is invisible — to scaffold time, with an error naming the variant's floor and the two fixes: install a release tag at or above the floor, or pass --gaze-version with one. No currently-working invocation stops working. Pins between v2.3.0 and v2.6.x in Node/Python repositories never produced a runnable workflow, the default pin (the binary's own version) is always valid, and Go repository behavior is unchanged for every input.

Pages needing updates

  • The gaze init CLI reference (mirrors gaze's docs/reference/cli/init.md): the --gaze-version flag row and the version-pinning paragraph need the per-variant floors (v2.3.0 Go, v2.7.0 Node/Python) with the analyzer-inputs reason; the fail-closed example section should add the Node rejection above alongside the existing Go example
  • The CI integration guide (mirrors gaze's docs/guides/ci-integration.md): the scaffolded-install section needs the enforced per-variant minimum, and the external-analyzer inputs paragraph — previously advisory ("keep the uses: pin at or above the release that introduced the inputs you pass") — should state that gaze init --ci enforces this floor at scaffold time

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions