Skip to content

Add a package marker and make upgrade, link and dependency paths package-aware #782

Done

Description

@pithead-developer

What's the problem

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

  1. added this to the v1.20.0 milestone on Nov 20, 2026
  2. added
    enhancement
    infra
    size:M
    on Nov 20, 2026
  3. added a commit that references this issue on Nov 24, 2026
    538d348
  4. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #806.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinfrasize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions