Skip to content

fix(install): the installers name the layers writ already has, writ reads an empty layer directory as no layer, and the installer suites test this commit's programs - #1032

Merged
David-Noble-at-work merged 8 commits into
developfrom
fix/1029-installers-tell-the-user-to
Oct 5, 2026

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lane 24 of #949. #1002's live install found #1029; its tests found #1030; fixing the two together found #1031. Ruled 2026-10-04: "The PR is not complete until this work is done", "Fix writ in this pull request", "Run them on every pull request", "Faux channel is good by me".

  • The installers name the layers writ already has (The installers tell the user to register a layer writ already has #1029). A layer not given used to be reported "skipped" with advice to register it, even when writ had it. Each installer now asks the writ it installed, and the summary says Already registered: <layers>; only layers writ doesn't have are skipped.
  • A layer is a git working tree (writ repo list reports every layer registered on a fresh install: self install creates empty layer directories #1030). self install made empty base, team and personal directories, and writ repo list called them registered. self install makes none now, and package layer (layer.Read → layer.Registration, ruled "Let's go with A") decides for repo list, repo set, adopt, deploy, reconcile and the secrets code: an entry that isn't a working tree is unregistered, or broken if it's a link. Adopt into an unregistered layer names writ repo set.
  • install.ps1 runs every program outside PowerShell's streams. PowerShell wraps a program's stderr in error records whenever it carries it, and Windows PowerShell 5.1 under Stop died on the first line of narration. Every program now runs through .NET's Process, and its stderr goes, line by line, to Write-Information (ruled: "We ALWAYS Write-Information so that powershell leaves us alone").
  • The suites test this commit's programs (The installer suites test the installers against the last release, never the programs in the same commit #1031). They installed the last published release, so an installer fix needing a program fix could never pass. They now install from a faux channel serving this commit's make dist archives. The Installers workflow runs on every pull request; one Linux job builds the archives and the seven installer jobs serve them, so Windows needs no tar, zip, Go or make.
  • Each installer serves one platform family (ruled while this was in CI: "tar is also outlawed in install.ps1", "we make no guarantees that install works on macOS and Linux"). install.ps1 installs on Windows alone, with no tar and no chmod, and elsewhere says "This script requires Windows." install.sh installs on Linux and macOS alone, and elsewhere says, as require_nix does, "This script requires Linux or macOS (Darwin)." Windows building, found unfinished on the way, is Building on Windows is incomplete: make's shell and utilities, and zip, are nowhere stated, installed or checked #1033.

Also: windows-native-permissions.md's initWritLayers item closes by deletion; #1002's plan is complete.

  • Plan — docs/plans/fix/1029-installers-tell-the-user-to.md. It stays active: its last box is the live install after the merge.

Resolves #1029
Resolves #1030
Resolves #1031

Test plan

  • make test (108 packages), make vet-all and make lint-all on linux, darwin and windows, star lint go, star lint shell; the PowerShell gate, 0 findings
  • writ repo list reports every layer registered on a fresh install: self install creates empty layer directories #1030's Go tests failed against f30c2092 for the reasons stated, and pass
  • Against make dist for every platform: scripts/Test-InstallScript.sh passes all 246 checks under bash 5 and bash 3.2; scripts/Test-InstallScript.ps1 all 79 under PowerShell 7, including a redirected install carrying no error record
  • install.sh refuses Windows (Git Bash's uname), and install.ps1 refuses off Windows
  • The Installers workflow on this pull request: the build job, and all seven installer legs, Windows PowerShell 5.1 among them
  • After the merge: an install on this machine through the published one-liner prints Already registered: base team personal and no "skipped" line

Time

Marker UTC Elapsed
opened (first commit) 2026-10-04T14:47:41Z —
submitted (PR opened) 2026-10-04T23:20:43Z 8.6 h after opened
merged 2026-10-05T01:58:07Z 2.6 h after submitted; 11.2 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…1 Windows, with no tar or chmod, and install.sh Linux and macOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant