pub fn update_package_reason(
manifest: &InstallManifest,
new_reason: &InstallReason,
) -> Result<(), Error>Expand description
Updates the installation reason for a package in the lockfile.
ยงErrors
Returns an error if:
- The lockfile cannot be read or written.
- The lockfile mutex is poisoned.
- The package is not found in the lockfile.