fetch

Fetches the package a reference points to from the repository registered for its scope.

Return

the package

Parameters

reference

exact package version to fetch

Throws

if no repository is registered for the scope, or the package is not found

if the repository cannot be reached

if the package's manifest is malformed


fun fetch(reference: String): RepositoryPackage

Parses reference and fetches the package it points to.

Return

the package

Parameters

reference

reference as written by the user, in the @<scope>/<name>:<version> form

Throws

if the reference is malformed, or any failure of fetch occurs; the original failure is kept as the cause