Repository navigation
doc(release): write down which release path is real, and stage star in the other - #736
Merged
Merged
Conversation
…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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make distbuilds and publishes every release..goreleaser.yamlis staged for adoption and runby nothing. Neither fact was written down.
That omission cost an afternoon. The config's
builds: writ, lorematches the two-entry releasetarball 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
disttarget, andversion-stamping.mdlistskeeping its
-Xflags 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 proposesno 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
release.yamlcomputesv0.1.0-dev.<timestamp>for non-tag builds and passesDEVLORE_VERSION; goreleaser derives from the tag and will not release without onedist-allforces a hostmake buildso-Xbinds to real symbols — guarding the failure that shipped unnoticed until 2026-08-16. Goreleaser has no equivalent; it becomes abefore:hook or it is lostfindExtensionsDirprobes<exeDir>/../share; the loader probesXDG_DATA_HOME. They agree only becauseinstall.shdefaults to~/.local. With--prefix=/opt/devlore, extensions install where nothing loads them — a pre-existing defectMacPorts turns out to be a fifth packaging target:
packaging/macports/generate-portfile.shexists, 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 toshare/star/extensions— withoutwhich a released binary answers
unknown command "devlore", because//go:embedcoverscmd/star/extensionsand notstar/extensions.Verified by hand before staging: a
starbuilt from a dist archive, run from outside any checkoutwith
XDG_DATA_HOMEat the unpacked prefix, resolves all fivedevlorecommand groups.Nothing is added to dist-all, deliberately
It is the live path —
install.shdefaults tolatest, including prereleases, so every push todevelopships something acurl | bashwill install. There is no reason to invest in a path thatretires on adoption, nor to ship a
starwhose extensions resolve only when--prefixhappens to be~/.local.Tracked by #453; the release-workflow row in #339 is the same gap.