• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

strongo / cli-helpers / 35250115181
100%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2026 05:01PM UTC
Jobs 1
Files 66
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Sep 2026 05:00PM UTC coverage: 100.0%. Remained the same
35250115181

push

github

web-flow
feat(selfupdate): treat system package directories as package-managed (#36)

## Why

`self-update` and `upgrade` refuse to overwrite a Homebrew, Scoop,
WinGet, or
Snap install in place — they always redirect the user to that manager's
own
upgrade command instead. Until now that protection only applied to a
directory a *consumer explicitly configured* as a `Manager`. A binary
placed
by the host OS's own package manager — for example an AUR-installed
`/usr/bin/ingitdb` on Arch, or a `dpkg`-installed CLI under `/usr/bin`
on
Debian/Ubuntu — was invisible to that check. Running `sudo ingitdb
self-update` on such a copy replaced it in place, because the path
merely
looked like a plausible "manual" `bin` directory.

That is unsafe for the same reason overwriting a Homebrew cask is
unsafe, one
layer down the stack:

1. **The file is tracked by the OS package manager's own database.**
`dpkg`/`apt`, `rpm`/`dnf`, `pacman` (including the AUR), `apk`, and the
Nix
store all record what they placed where. Overwriting that file does not
typically make the manager *refuse* anything — it simply has no idea a
foreign file landed on top of its own. The next *ordinary* upgrade of
that
package (`apt upgrade`, `dnf upgrade`, `pacman -Syu`) silently
overwrites
   it again with the package's own bytes, undoing our update without any
error, while in the meantime `dpkg --verify`, `rpm -V`, and `pacman
-Qkk`
   all report the file as modified against what the manager's database
recorded. The Nix store (`/nix/store`) is the same rule under a
different
mechanism: it is content-addressed and nothing but Nix is meant to write
into it. Only NixOS mounts it read-only; elsewhere root (or the owning
user
of a single-user install) can overwrite a file, which breaks the store
path's content hash and makes `nix-store --verify --check-contents`
report
   it as corrupted; `/run/current-system`
(NixOS, and nix-darwin on macOS) is the live symlink into that same
store.
2. **This is not a new r... (continued)

84 of 84 new or added lines in 8 files covered. (100.0%)

6708 of 6708 relevant lines covered (100.0%)

1.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35250115181.1 17 Sep 2026 05:01PM UTC 66
100.0
GitHub Action Run
Source Files on build 35250115181
  • Tree
  • List 66
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 811f2a50 on github
  • Prev Build on main (#35237228670)
  • Next Build on main (#36169177125)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc