locate

open override fun locate(reference: String, projectRoot: FsEntry): ResolvedPackage

Looks the package up locally, without side effects.

Return

the package if the exact referenced version is available locally, null otherwise

Parameters

reference

the reference as written in the document

projectRoot

directory of the main document, under which packages are installed

Throws

if the reference is malformed or the local installation is corrupted