pub fn resolve_source(
source: &str,
scope: Option<Scope>,
quiet: bool,
yes: bool,
) -> Result<ResolvedSource, Error>Expand description
Resolves a source identifier into a concrete local path to a .pkg.lua file.
This is the primary entry point for package discovery. It handles:
- Parsing the source string (e.g. #reg@repo/name@version).
- Deciding if the source is a local file, a URL, or a registry-backed package.
- Recursively following ‘alt’ references if the package definition points elsewhere.
- Confirming trust for untrusted sources (URLs/local files).