The sibling spec now says not to install a command named configure, update, refresh, sibling, version, audit, report or webapp into ~/.local/bin: MiniServer's sibling HamPackServer installed its own configure over MiniServer's, which every update then swapped back and forth. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,12 +66,8 @@ steps are done. Follow-ups:
|
||||
non-zero on failure; `$COREDESKTOP`, `confirm` and `confirm_yes`
|
||||
are there, since it's sourced rather than run with `bash`; and don't
|
||||
take a name `configure --list` already shows. Add a checklist line.
|
||||
Also add a rule, with its own checklist line, under `install.sh`'s
|
||||
"Install commands into `~/.local/bin`": don't use the name of one
|
||||
of CoreDesktop's commands (`configure`, `update`, `refresh`,
|
||||
`sibling`, `version`, `audit`, `report`, `webapp`), which are in
|
||||
`~/.local/bin` too. HamPackServer did, and its `configure`
|
||||
replaced MiniServer's on every `update`.
|
||||
Point the rule against commands named like CoreDesktop's (under
|
||||
`install.sh`) to the new section, as MiniServer's does.
|
||||
3. `README.md`: one sentence where `configure --list` is described
|
||||
(around line 304) saying sibling projects can add an item, named
|
||||
after the project.
|
||||
|
||||
@@ -103,6 +103,13 @@ step for siblings, so anything `install.sh` set up elsewhere stays.
|
||||
- It may prompt the user, since it runs in their terminal.
|
||||
- Install commands into `~/.local/bin` (already on `PATH` under CoreDesktop)
|
||||
with `install_script`.
|
||||
- **Don't use a name CoreDesktop's commands use**: `configure`, `update`,
|
||||
`refresh`, `sibling`, `version`, `audit`, `report` or `webapp`. They're in
|
||||
`~/.local/bin` too, so yours would replace CoreDesktop's, and every
|
||||
`update` would put CoreDesktop's back before yours replaced it again.
|
||||
Prefix the project's name instead (`my-tools-configure`). MiniServer's
|
||||
sibling HamPackServer once installed its settings script as `configure`,
|
||||
and MiniServer's `configure` disappeared.
|
||||
|
||||
### `update.sh`
|
||||
|
||||
@@ -246,6 +253,9 @@ changing.
|
||||
never force-pushed
|
||||
- [ ] Releases are tagged on the default branch (optional; without tags the
|
||||
version is the commit's date and hash), and pushed tags are never moved
|
||||
- [ ] No command in `~/.local/bin` has the name of one of CoreDesktop's
|
||||
(`configure`, `update`, `refresh`, `sibling`, `version`, `audit`,
|
||||
`report`, `webapp`)
|
||||
- [ ] The project doesn't also copy a hook into CoreDesktop's `updates.d/`
|
||||
- [ ] The README tells users to install with
|
||||
`sibling add <url>`
|
||||
|
||||
Reference in New Issue
Block a user