Skip to content

make build PLATFORM=<other> fails its version check against a stale host binary #790

Open

Description

@David-Noble-at-work

make build PLATFORM=windows/amd64 writes build/windows-amd64/{lore,star,writ}.exe and then exits 1:

  build computed: v0.1.0-dev.20260903040058-7-g0926ab3d
  binary reports: v0.1.0-dev.20260903040058-5-gbc3d063e-dirty
  The -X paths in LDFLAGS name symbols that do not exist — check github.com/NobleFactor/devlore-cli/pkg/application.
make: *** [Makefile:260: build] Error 1

The post-build version check runs the host build/writ, which a cross-build does not rebuild, so it
compares a stale stamp against the one just computed and blames LDFLAGS. The cross-built binaries are
fresh and correctly stamped; the check is wrong for any PLATFORM other than the host. Observed 2026-09-04
building writ for a Windows test machine.

Evidence of completion

  • the version check runs the binary it just built, or is skipped with a note when that binary cannot
    run on the host
  • make build PLATFORM=windows/amd64 exits 0 on a clean tree

Found building for a test machine. Its own worktree.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions