Skip to content
podkovyrinPublic

About

A gate between available and ready updates. Upgate checks release age, version policy, and OSV, then lets you choose what gets updated.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🚦 upgate

CI Crates.io Platforms License

The gate between available and ready updates

A new version can be available before it is ready for your system. upgate waits for the configured release age, applies the version policy, and checks OSV when it can identify the exact package. You see the result and choose what gets updated.

Package managers still find and install updates in their own way. upgate checks the possible updates before it runs their commands. This makes supply chain attacks harder, but still it cannot prove that a release is safe.

upgate demo

Install

Download the prebuilt binary for your system from the latest release. Unpack it and place upgate in a directory on your PATH. Rust is not required.

From source

With Rust 1.88 or newer:

cargo install upgate

Or build the current checkout:

git clone https://github.com/podkovyrin/upgate.git
cd upgate
cargo install --path crates/upgate-cli --locked

macOS is the main platform today. Linux is supported too, but it has not had the same amount of real-world testing yet.

Start here

upgate

Scans installed tools and opens a picker for updates and removals.

  • Space toggles an update selection.
  • d toggles removal.
  • / searches package names, moving the cursor without filtering rows.
  • C reviews and applies selected actions.

See the on-screen footer for other controls.

For read-only checks and other workflows:

# List installed tools
upgate scan

# Build a plan without updating anything
upgate plan

# Run only selected package managers
upgate plan --managers npm,cargo

# Preview the commands without running them
upgate apply --dry-run

# Apply the default selection without opening the picker
upgate apply --yolo

Add --verbose when you need release-age, version-policy, or security details.

Supported package managers

Defaults and supported features differ by manager.

Package manager Default mode Minimum release age Version policies OSV check
Homebrew apply 12 hours none, stable, same-track When the Git source is known
Bun apply 7 days none, stable, same-track npm
Cargo apply 7 days none, stable, same-track crates.io
npm apply 7 days none, stable, same-track npm
mise apply 7 days none Known backend or Git source
pipx apply 7 days none, stable, same-track PyPI
pnpm apply 7 days none, stable, same-track npm
uv apply 7 days none PyPI
Go apply 7 days none, stable, same-track Go
RubyGems off 7 days stable RubyGems
.NET tools off 7 days none, stable, same-track NuGet

OSV coverage depends on package identity: a check runs only when upgate can make an exact mapping. Missing package-manager executables are skipped.

Removals

Updates run before removals. Each manager keeps its normal uninstall behavior and dependency checks.

  • mise removes the displayed version without editing mise configuration, so tools still declared there may be reinstalled later. Updates and removals for different versions of the same tool must run separately.
  • pipx shows a removal-unavailable explanation for suffixed or renamed environments.

Removal marks apply only to the current run. Bulk update selection leaves them intact, and --yolo selects updates only. Confirming a removal clears the package from upgate's selection exceptions before commands run, even if uninstall later fails. --dry-run previews actions without uninstalling tools or saving selection changes.

Configuration

The config file is $XDG_CONFIG_HOME/upgate/config.toml, or ~/.config/upgate/config.toml when XDG_CONFIG_HOME is not set. Without a config file, upgate uses the defaults above.

[npm]
min_release_age = "14d"
version_policy = "same-track"

[npm.selection]
mode = "skip"
except = ["typescript"]

[gem]
mode = "plan"

Manager mode

  • apply: include the manager in every command
  • plan: scan and plan, but do not update or remove tools
  • off: skip the manager

Update policy

Release age accepts seconds, minutes, hours, and days, such as 30m, 12h, or 7d. npm accepts whole days only.

Version policy can be:

  • none: do not filter prereleases
  • stable: use final releases only
  • same-track: stay at least as stable as the installed version

Not every policy fits every manager. Unsupported combinations are rejected.

Default selection

A selection rule controls which packages start selected. except always means the opposite of mode: the example skips npm packages except typescript.

One-run overrides

Use --set or -S for one run:

upgate plan --set npm.min_release_age=14d --set brew.no_update=true

See the full config example for every setting.

Release age and security

A version younger than min_release_age is not selected by the normal plan. When a manager provides version history, an older eligible version can be used instead. Waiting gives problems time to become visible. It is not proof that a release is safe.

OSV checks run only for packages with an exact ecosystem and package identity. For those packages, a vulnerable target or a failed OSV request is blocked by default. Packages without an OSV mapping are shown without an audit result and are not blocked.

The interactive picker can offer a forced target for some blocked updates. When that option is present, you can choose it explicitly.

upgate scan --verbose audits installed versions. Normal scan does not contact OSV.

Logs

Each run gets a timestamped directory:

  • macOS: ~/Library/Logs/upgate/
  • Linux: $XDG_STATE_HOME/upgate/logs/, or ~/.local/state/upgate/logs/
File Contents
core.log Failed commands and commands that change the system
snapshot.json Plan and selected actions for apply runs
  • --log-commands also saves output and timing for every external command and prints the session directory after the run.
  • --trace-commands shows commands live, inside the picker when interactive.

Run upgate --help to see all command options.

License

MIT

About

A gate between available and ready updates. Upgate checks release age, version policy, and OSV, then lets you choose what gets updated.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages