Skip to main content

Module update_check

Module update_check 

Source
Expand description

Daily update check against crates.io for flodl-cli and project-pinned flodl / flodl-hf. Opt out via FDL_NO_UPDATE_CHECK=1 or the global config file. Daily update check for fdl and the user-facing flodl crates.

Probes crates.io once per day for newer versions of flodl-cli (this binary), plus flodl and flodl-hf when found in the current project’s Cargo.lock. Caches results in <config_dir>/flodl/config.json and prints one nudge line per outdated crate at the end of the user’s command.

§Opt-out

  • FDL_NO_UPDATE_CHECK=1 env var (wins over all else).
  • update_check.enabled = false in <config_dir>/flodl/config.json.
  • Auto-disabled when CI=true or running inside a Docker container (container filesystems are ephemeral so the cache resets every run, and CI runs already pin versions explicitly).

§Network behaviour

HTTP via curl --max-time 2, silent on every failure mode. The probe never blocks the user’s command output: it runs from a Guard that fires at process exit (Drop), after the user-visible work is done.

Structs§

Guard
RAII guard whose Drop runs the update check at process exit.