pub struct UnresolvedCatalogReference {
pub entry_name: String,
pub catalog_name: String,
pub path: PathBuf,
pub line: u32,
pub available_in_catalogs: Vec<String>,
}Expand description
A workspace package.json reference (catalog: or catalog:<name>) that points
at a catalog which does not declare the consumed package.
Package manager installs error when this happens. fallow surfaces it
statically so the failure is caught at fallow dead-code time, before any
install.
The default catalog (bare catalog:) uses catalog_name: "default".
Named catalogs (catalog:react17) use the declared catalog name.
Fields§
§entry_name: StringPackage name being referenced via the catalog protocol (e.g. "react").
catalog_name: StringCatalog group the reference points at: "default" for bare catalog: references,
or the named catalog key for catalog:<name> references.
path: PathBufAbsolute path to the consumer package.json. Matches the storage
convention used by every path-anchored finding type (UnusedFile,
UnresolvedImport, UnusedExport, etc.) so the shared filtering
pipelines (filter_results_by_changed_files, per-file overrides,
audit attribution) work without a separate root-join pass. JSON
output strips the project-root prefix via serde_path::serialize.
line: u321-based line number of the dependency entry in the consumer package.json.
available_in_catalogs: Vec<String>Other catalogs in the same catalog source that DO declare this package. Empty when no catalog has the package. Sorted lexicographically. Lets agents and humans decide whether to switch the reference to a different catalog or to add the entry to the named catalog.