You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update all references: repo name, clone path, state directory, URLs, banners
- Add migration to move existing state and clone directories
- Rename GitHub repo from trusted/devsetup to trusted/setup
Copy file name to clipboardExpand all lines: ARCHITECTURE.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Trusted Dev Setup - Architecture
1
+
# Trusted Setup - Architecture
2
2
3
3
## Problem
4
4
@@ -8,7 +8,7 @@ This is a chicken-and-egg problem: you need the repo cloned to run `bin/setup`,
8
8
9
9
## Solution
10
10
11
-
A centralized `trusted/devsetup` repository containing a bash bootstrap script (`setup.sh`) that prepares any developer machine with the baseline system tools required to clone and run any Trusted project's `bin/setup`.
11
+
A centralized `trusted/setup` repository containing a bash bootstrap script (`setup.sh`) that prepares any developer machine with the baseline system tools required to clone and run any Trusted project's `bin/setup`.
12
12
13
13
The script is invocable via `curl | bash` on a fresh machine (no prerequisites beyond bash and curl, which are present on all target platforms).
14
14
@@ -72,7 +72,7 @@ Migrations handle one-time transitions that are not naturally idempotent: removi
72
72
Inspired by [Omarchy's migration system](https://github.com/basecamp/omarchy/blob/dev/bin/omarchy-migrate).
73
73
74
74
- Migration scripts live in `migrations/` and are named `<timestamp>_<description>.sh`: e.g. `1740000000_remove_deprecated_tool.sh`
75
-
- State is tracked in `~/.local/state/trusted/devsetup/migrations/` as empty marker files (one per completed migration)
75
+
- State is tracked in `~/.local/state/trusted/setup/migrations/` as empty marker files (one per completed migration)
76
76
- On each run of `setup.sh`, the migration runner:
77
77
1. Scans `migrations/*.sh` sorted numerically
78
78
2. Skips any migration whose marker file already exists
@@ -101,10 +101,10 @@ This removes the marker file for the given migration and re-executes it.
101
101
102
102
## State directory
103
103
104
-
All local state is stored under `~/.local/state/trusted/devsetup/` (follows XDG Base Directory conventions):
104
+
All local state is stored under `~/.local/state/trusted/setup/` (follows XDG Base Directory conventions):
0 commit comments