Repository navigation
feat(pages): serve the installer at objectfs.io/install.sh (#138) - #440
Merged
Merged
Conversation
`curl -fsSL https://objectfs.io/install.sh | bash` is the one-liner #138's acceptance criteria name, and for that issue's whole life the address answered with a 404 — first because objectfs.io served nothing, then, once Pages was on, because pages.yml published web/ and the MkDocs tree and no installer. README.md and the landing page pointed at raw.githubusercontent.com instead, which works and is not a URL anyone types from memory. Served by copying scripts/install.sh to the site root at build time, not by committing a second copy under web/. That distinction is the whole risk here: every existing check in internal/config reads scripts/install.sh — the platform mapping against release.yml's matrix, the checksum refusals, the preflight ordering, the landing page's flags — so a served copy that differs from it means the file users pipe into bash is the file nothing tests. The workflow therefore cmp's the two, served_install_script_test.go asserts both the copy and the comparison, and a third check refuses a committed duplicate at web/install.sh, docs/install.sh or web/scripts/install.sh. scripts/install.sh also joins the workflow's paths: filter, which it was not in. Without that the site keeps serving whichever copy was current at the last docs change, and nothing is visible: the repository's copy is correct, every check is green, and the served one is stale. The paths assertion matches a whole YAML sequence entry rather than a substring, for two reasons found rather than predicted. The path also appears in the cp and cmp commands, so a Contains check would pass on a workflow with no trigger for the file at all. And pre-commit's pretty-format-yaml unquotes and dedents every block sequence in this file — the first version asserted 'scripts/install.sh' and the formatter would have failed it. All six mutations fail the intended check with the intended message. The assemble step was also run locally: cp, chmod, cmp and the CNAME grep against a real _site tree. README.md and the landing page are deliberately unchanged in this commit. They get pointed at the new address once it is verified to answer, not before — a documented URL that 404s is the exact defect class this repository has spent several PRs removing.
This was referenced Aug 14, 2026
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.
First half of #138 part (c), per the decision to use GitHub Pages as the hosting surface. This part needs no signing-key decision, so it lands on its own.
What this fixes
curl -fsSL https://objectfs.io/install.sh | bashis the one-liner #138's acceptance criteria name. For that issue's whole life the address answered with a 404: first because objectfs.io served nothing at all, then — once Pages was on — becausepages.ymlpublishedweb/and the MkDocs tree and no installer.README.mdand the landing page pointed atraw.githubusercontent.com/scttfrdmn/objectfs/main/scripts/install.shinstead, which works and is not a URL anyone types from memory.Copied, not committed
The obvious way to serve a file from a static site is to commit it under the published directory. That is the wrong way here, and it is the whole risk in this change:
every existing gate in
internal/configreadsscripts/install.sh— the platform mapping againstrelease.yml's matrix, the checksum refusals, the preflight ordering, the landing page's flag coupling. A served copy that differs from it means the file users pipe into bash is the file nothing tests.So the workflow copies it at build time and
cmps the two, andinternal/config/served_install_script_test.goasserts three things:scripts/install.shis in thepaths:filter, so editing the installer redeploys the siteweb/install.sh,docs/install.shorweb/scripts/install.shA fourth check couples the documented one-liners in
README.mdandweb/index.htmlto an address that is actually served — the two that work — because every other name under objectfs.io resolves (Porkbun answers a wildcard) and serves nothing.get.objectfs.ioopened the getting-started guide for a year on exactly that basis.Verification
All six mutations fail the intended check with the intended message:
cpstepcmpwith a no-oppaths:entry (cp/cmpstill name the path)web/install.shget.objectfs.io/install.shThe paths assertion matches a whole YAML sequence entry rather than a substring, for two reasons found rather than predicted: the path also appears in the
cpandcmpcommands, so aContainswould pass on a workflow with no trigger for the file; and pre-commit'spretty-format-yamlunquotes and dedents every block sequence in this file, so the first version — asserting'scripts/install.sh'— would have been failed by the formatter.The assemble step was also run locally against a real
_sitetree rather than read:cp,chmod,cmpand the CNAME grep all behave.Deliberately not in this PR
README.mdandweb/index.htmlstill point atraw.githubusercontent.com. They get pointed at the new address once it is verified to answer on the deployed site — not before. A documented URL that 404s is the exact defect class this repository has spent several PRs removing, and doing it in this order means the fix is measured rather than assumed.Still outstanding on part (c), and needing a decision rather than code: where the GPG signing key lives (Actions secret, hardware token, KMS), who can use it, and rotation. The apt/yum repository metadata cannot be built without answering that.
Refs #138