Report the module version when installed with go install #1

Merged
daniel merged 1 commit from fix/version-from-build-info into main 2026-11-07 18:34:08 +00:00
Owner

go install .../cmd/fgj@latest does not apply the Makefile's -ldflags,
so fgj --version and the User-Agent always said "dev". Fall back to
the main module version from runtime/debug build info when no version
was injected at build time.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

`go install .../cmd/fgj@latest` does not apply the Makefile's -ldflags, so `fgj --version` and the User-Agent always said "dev". Fall back to the main module version from runtime/debug build info when no version was injected at build time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`go install .../cmd/fgj@latest` does not apply the Makefile's -ldflags,
so `fgj --version` and the User-Agent always said "dev". Fall back to
the main module version from runtime/debug build info when no version
was injected at build time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
daniel merged commit 3a2a38a44a into main 2026-11-07 18:34:08 +00:00
daniel deleted branch fix/version-from-build-info 2026-11-07 18:34:17 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
daniel/Forgejo-CLI!1
No description provided.