Skip to content

doc(release): write down which release path is real, and stage star in the other - #736

Merged
David-Noble-at-work merged 1 commit into
developfrom
chore/goreleaser-ship-star
Aug 30, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
chore/goreleaser-ship-star

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

make dist builds and publishes every release. .goreleaser.yaml is staged for adoption and run
by nothing.
Neither fact was written down.

That omission cost an afternoon. The config's builds: writ, lore matches the two-entry release
tarball exactly, so it reads as the release path until you go looking for who invokes it — and
nobody does. The Makefile says so in a comment at the dist target, and version-stamping.md lists
keeping its -X flags correct as a completed item, but neither is where a reader looks first.

What this adds

docs/plans/release-path.md — the state of the world and the conditions for adoption. It proposes
no change to how releases are built.
We are not ready to release; goreleaser is adopted when we
are.

What adoption needs, none of it a port

Version derivation release.yaml computes v0.1.0-dev.<timestamp> for non-tag builds and passes DEVLORE_VERSION; goreleaser derives from the tag and will not release without one
The stamp proof dist-all forces a host make build so -X binds to real symbols — guarding the failure that shipped unnoticed until 2026-08-16. Goreleaser has no equivalent; it becomes a before: hook or it is lost
The prefix assumption findExtensionsDir probes <exeDir>/../share; the loader probes XDG_DATA_HOME. They agree only because install.sh defaults to ~/.local. With --prefix=/opt/devlore, extensions install where nothing loads them — a pre-existing defect

MacPorts turns out to be a fifth packaging target: packaging/macports/generate-portfile.sh
exists, is executable, and its own comment says "Called by GoReleaser as a post hook". It has never
run, so whether its Portfile is correct is unverified.

star, staged

Built for the same six pairs, and star/extensions/** shipped to share/star/extensions — without
which a released binary answers unknown command "devlore", because //go:embed covers
cmd/star/extensions and not star/extensions.

Verified by hand before staging: a star built from a dist archive, run from outside any checkout
with XDG_DATA_HOME at the unpacked prefix, resolves all five devlore command groups.

Nothing is added to dist-all, deliberately

It is the live path — install.sh defaults to latest, including prereleases, so every push to
develop ships something a curl | bash will install. There is no reason to invest in a path that
retires on adoption, nor to ship a star whose extensions resolve only when --prefix happens to be
~/.local.

Tracked by #453; the release-workflow row in #339 is the same gap.

…n the other

`make dist` builds and publishes every release. `.goreleaser.yaml` is staged for
adoption and is run by nothing. Neither fact was written down, and the omission
cost an afternoon: the config's `builds: writ, lore` matches the two-entry release
tarball exactly, so it reads as the release path until you go looking for who
invokes it. Nobody does. The Makefile says so in a comment at the dist target and
version-stamping.md lists keeping its -X flags correct as a completed item, but
neither is where a reader looks first.

docs/plans/release-path.md records the state of the world and the conditions for
adoption. It proposes no change to how releases are built. We are not ready to
release; goreleaser is adopted when we are.

What adoption needs, and none of it is a port:

Version derivation moves. release.yaml computes v0.1.0-dev.<timestamp> for
non-tag builds on develop and passes it as DEVLORE_VERSION; goreleaser derives
{{ .Version }} from the tag and will not release without one. Tag first, or keep
synthesizing and pass it in -- a release-model decision.

The stamp proof must survive. dist-all forces a host `make build` so the -X flags
are proven against real symbols on a binary that can run, guarding the failure
that shipped unnoticed until 2026-08-16. Goreleaser has no equivalent; it becomes
a before: hook or it is lost.

The prefix assumption is a pre-existing defect. findExtensionsDir probes
<exeDir>/../share while the LOADER probes XDG_DATA_HOME; they agree only because
install.sh defaults to --prefix=$HOME/.local. With --prefix=/opt/devlore the
extensions install where nothing loads them.

MacPorts turns out to be a fifth packaging target: packaging/macports/
generate-portfile.sh exists, is executable, and says "Called by GoReleaser as a
post hook". It has never run, so whether its Portfile is correct is unverified.

star is staged in .goreleaser.yaml -- built for the same six pairs, and
star/extensions/** shipped to share/star/extensions, without which a released
binary answers `unknown command "devlore"`: //go:embed covers cmd/star/extensions
and not star/extensions. Verified by hand before staging: a star built from a
dist archive, run from outside any checkout with XDG_DATA_HOME at the unpacked
prefix, resolves all five devlore command groups.

Nothing is added to dist-all deliberately. It is the live path -- install.sh
defaults to "latest, including prereleases", so every push to develop ships
something a curl | bash will install -- and there is no reason to invest in a
path that retires on adoption, nor to ship a star whose extensions resolve only
when --prefix happens to be ~/.local.

Tracked by #453; the release-workflow row in #339 is the same gap.
@David-Noble-at-work
David-Noble-at-work merged commit 5c4d546 into develop Aug 30, 2026
12 checks passed
David-Noble-at-work pushed a commit that referenced this pull request Aug 30, 2026
…aml (#736)

Picks up #736, which landed on develop 67 seconds after this branch's last
CI run was created -- so every green result on this PR so far, including
the 12/12 on cece6c9, tested a merge ref that did not contain it.

No files are shared. #736 touches .goreleaser.yaml and
docs/plans/release-path.md; this branch touches pkg/result, cmd/internal/cli,
cmd/devlore-test, cmd/writ, and its own docs. The one coupling is
verify-ldflags, which greps .goreleaser.yaml for Version, Commit, and
BuildDate against pkg/application: #736's new star build block carries all
three, and the check is a whole-file grep, so an added block cannot break it.

This merge exists so CI tests the combination rather than the assertion that
it is safe.
@David-Noble-at-work
David-Noble-at-work deleted the chore/goreleaser-ship-star branch August 31, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant