Skip to main content

maybe_auto_update

Function maybe_auto_update 

Source
pub fn maybe_auto_update(registry: &Registry)
Expand description

The end-of-run hook behind auto_update: when the setting is on and the last release check already knows a newer version exists, run the self-update without being asked.

Warn-never-fail, like everything else that runs as a side effect of devp run — a broken upgrade path must not turn a successful prune into a failed command.