pub(crate) fn resolve_catalog_package_ref<FChoose>(
conn: &DbConnection,
package_ref: &PackageRef,
choose_package: FChoose,
) -> Result<CatalogPackage>Expand description
Resolve a package reference to a single catalog package.
Name-based references use the same interactive disambiguation rules as a raw query. ID-based references bypass the chooser and resolve by exact catalog ID only, which keeps package references deterministic when the caller has a unique identifier.