Skip to main content

ensure_devp_alias

Function ensure_devp_alias 

Source
pub fn ensure_devp_alias()
Expand description

Create the devp executable alias next to dev-prune, and keep it current.

Runs on every invocation because it is two stat calls in the settled case, and because the alias is how most people invoke this tool — it must never be the stale half of an upgrade.

DEV_PRUNE_NO_AUTO_SETUP suppresses it, and so does looking like CI or a container, because writing a second executable next to the first is a self-installation like any other — and those environments cannot set the variable before the first run. devp setup still creates the alias in either case: it governs the unattended pass, not the explicit request.