Skip to main content

write_plugin_lockfile

Function write_plugin_lockfile 

Source
pub fn write_plugin_lockfile() -> Result<PathBuf>
Expand description

Rewrite plugins.lock.json from the installed set. Returns its path.

ยงErrors

Opening the runtime store, listing the plugins, resolving the data dir, creating its parent, and the atomic write. The write is atomic, so a failure leaves the previous lockfile intact rather than a truncated one.