Skip to content

Source-installed binaries report stale version #132

Description

@steipete

Problem

Source-built Discrawl binaries report the stale hard-coded version 0.11.2, even though the latest release is v0.11.5.

This affects plain source builds and module installs. It also risks passing an empty or stale value into release checks and remote user-agent strings once the hard-coded fallback is removed.

The same bug class was fixed in openclaw/wacrawl#39.

Expected behavior

  • Prefer a non-empty linker-injected release version.
  • Otherwise use the main module version from Go build metadata.
  • Strip a leading v from either source.
  • Return devel when build metadata is missing or reports (devel).
  • Use the resolved value for both CLI version paths, release checks, and Discrawl user-agent strings.

Acceptance proof

  • Regression tests cover linker precedence, tagged and pseudo module versions, (devel), and missing metadata.
  • Both discrawl --version and discrawl version report the resolved value.
  • A real module-install-style build reports its module version instead of 0.11.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions