Skip to content

docs: document every install route, not just building from source - #6

Merged
Phundahl merged 1 commit into
mainfrom
docs/install-options
Aug 21, 2026
Merged

docs: document every install route, not just building from source#6
Phundahl merged 1 commit into
mainfrom
docs/install-options

Conversation

@Phundahl

Copy link
Copy Markdown
Owner

Why

The Installation section offered only go install and a source build — despite v1.2.0/v1.3.0 publishing .tar.gz, .deb and .rpm for amd64 and arm64, and an AUR package existing since v1.1.0. The install path most users actually want was undocumented, and both documented paths require a Go toolchain for what is otherwise a dependency-free binary.

The rule worth keeping

Every install route must be able to follow every other instruction in the README.

The live-theme-switching section offered two ways to get the template — /usr/share/tailtui/… (packages) or contrib/… (a clone). Anyone who ran go install has neither, so that instruction was unfollowable for them. Same class of defect as the packaging gap fixed in #5, just stranding a different group.

Fixed with a third curl line fetching the template from raw.githubusercontent.com.

Changes

  • Installation split into four routes: AUR, .deb/.rpm, prebuilt tarball, from source — packaged ones first
  • Template install covers all three on-disk situations
  • Documents the two go install caveats: $GOBIN/$GOPATH/bin isn't always on PATH, and a source build installs only the binary
  • Requirements clarified — Go is needed only for a source build

Avoiding rot

The tarball snippet resolves the current tag from the API rather than embedding a version:

VER=$(curl -fsSL https://api.github.com/repos/Phundahl/tailtui/releases/latest |
      sed -n 's/.*"tag_name": *"\(.*\)".*/\1/p')

A releases/latest/download/tailtui_1.3.0_… URL works only while 1.3.0 is latest — it 404s the moment v1.4.0 ships, because the filename embeds the version. Verified the snippet resolves v1.3.0 and downloads successfully.

Scope

Docs only. No Go, test or packaging changes, and no version bump — nothing user-facing changed in the program itself.

The Installation section offered only `go install` and a source build,
even though v1.2.0/v1.3.0 publish .tar.gz/.deb/.rpm for amd64 and arm64
and an AUR package has existed since v1.1.0. The path most users want
was undocumented.

Rewritten as four routes -- AUR, .deb/.rpm, prebuilt tarball, from
source -- leading with the packaged ones, which need no Go toolchain.

The rule this enforces: every install route must be able to follow every
other instruction in the README. The live-theme-switching section
offered /usr/share/tailtui/... (packages) or contrib/... (clone), which
strands anyone who ran `go install` -- they have neither. Added a curl
line fetching the template from raw.githubusercontent.com.

Also documents the two `go install` caveats: the binary lands in
$GOBIN/$GOPATH/bin, which is not necessarily on PATH, and a source build
installs the binary alone.

The tarball snippet resolves the current tag from the API rather than
embedding a version, so it does not break on the next release.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Phundahl
Phundahl merged commit 6694a6d into main Aug 21, 2026
2 checks passed
@Phundahl
Phundahl deleted the docs/install-options branch August 21, 2026 10:47
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