pub fn record_package(
pkg: &Package,
reason: &InstallReason,
_installed_dependencies: &[String],
registry_handle: &str,
repo_type: &str,
_chosen_options: &[String],
_chosen_optionals: &[String],
sub_package: Option<&str>,
) -> Result<(), Error>Expand description
Records a package installation or update in the lockfile.
ยงErrors
Returns an error if:
- The lockfile cannot be read or written.
- The lockfile mutex is poisoned.