pub fn write_pinned_packages(packages: &[PinnedPackage]) -> Result<(), Error>Expand description
Saves the list of pinned packages to pinned.json.
ยงErrors
Returns an io::Error if the home directory cannot be found, if creating
the .zoi directory fails, or if writing to pinned.json fails.