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
{{ message }}
Repository navigation
Add a package marker and make upgrade, link and dependency paths package-aware #782
control_upgrade requires a .git checkout with an https origin and runs git checkout --force in the code tree. On a package-owned tree that fails unclearly, upgrade --check prints git commands, link_cli would collide with a package-owned /usr/bin/rigforge, and install_dependencies runs apt-get or brew itself.
What it impacts
Operators on apt or brew installs. Appliance and git installs must not change.
How I found it
Reading rigforge.sh at develop 5ab6e27: _control_upgrade_do 4659-4672, control_upgrade 4681-4797 (git requirement 4741-4745), upgrade --check 2103-2142 (git text 2139), link_cli 1743-1771, install_dependencies 929-1000. The .rigforge-appliance marker and the appliance skip branch are the existing pattern.
How important is it
Required before any package ships, otherwise two update mechanisms fight over one tree.
Acceptance criteria
A .rigforge-package marker in the lib dir (value apt or brew) is detected like the appliance marker, with a test override.
With the marker, control_upgrade and a tag upgrade refuse before touching git, report a status naming apt upgrade rigforge or brew upgrade rigforge, and tests prove git is never invoked.
upgrade --check compares versions through the Tor-capable fetcher and prints the channel command instead of git steps; without the marker output is unchanged.
add_to_path is skipped, and install_dependencies is skipped for apt (brew too) via a generalised package-mode flag.
Existing tests pass unchanged without the marker.
Possible solutions
One _package_install helper beside the appliance detector, called at the four sites. Inferring package mode from a missing .git is fragile for tarball installs.
Activity
Run the package-mode tests inside tests/run.sh so kcov covers them (#782
Source rigforge.sh inside each package-mode test subshell (#782)
shfmt the package-mode test (#782)
package: fix #782 — package marker makes upgrade, link and dependency…
pithead-developer commentedon Nov 24, 2026
Merged in #806.