Skip to content

[Bug]: Release binaries and the deb package report version 0.0.0-dev #464

Description

@rogkne

Describe the Bug

The build job compiles the release binaries while Cargo.toml still carries
version = "0.0.0-dev". The release and deb jobs reuse those artifacts, so the
published binaries and the deb report 0.0.0-dev from cubic --version. Only the
crate publish patches the version, and only the snap sets its own version, so the
version a user sees depends on how they installed cubic.

Where

  • .github/workflows/build.yml build job compiles without patching the version
  • .github/workflows/build.yml publish-release reuses the build artifacts
  • .github/workflows/build.yml package-deb builds from the unpatched manifest
  • publish-crate patches the version with sed and package-snap overrides it separately

Impact

A released binary and the deb both answer 0.0.0-dev to --version, which makes bug
reports harder and disagrees with the crate and snap versions.

Suggested Fix

Stamp the version once, early, before the build job compiles, derived from the tag, so
every artifact carries the same version. Then the release, deb, crate and snap agree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions