buildinfo

package
v0.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package buildinfo holds the one version string this product reports.

It exists because there were three. `logos version` printed a value stamped at link time, the MCP handshake announced a hard-coded "0.1.0", and the npm wrapper carried a third number in its manifest. An MCP client that asked the server what it was talking to got an answer that had been wrong since the v0.1.1 tag, and would have stayed wrong through every release after it, because nothing about cutting a tag touches a string literal buried in a handshake reply.

A version people read off a running process has to come from the build, not from a constant someone has to remember to bump. So there is one variable, stamped by scripts/release.sh, and every surface that reports a version reads it from here.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the release this binary was built from, stamped at link time:

-ldflags "-X github.com/Coder8124/logos/internal/buildinfo.Version=v0.1.2"

An unstamped build says "dev", which is the honest answer for one.

Functions

func Older added in v0.4.4

func Older(a, b string) (older, ranked bool)

Older says whether release a is an earlier release than b, and whether the two could be ranked at all.

Both have to be plain releases, "0.4.3" or "v0.4.3". Anything else — dev, a pseudo-version, a pre-release — is unrankable rather than ancient, and the difference matters to a caller that updates on the answer: treating "dev" as older than everything would have it reinstall on every single check.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL