Downloading a project dependency:
myProject/main> pull @unison/base/releases/X.Y.Z lib.basePulling a public namespace:
scratch/main> pull unison.public.base.latest lib.baseUsing git urls:
scratch/main> pull git(git@github.com:unisonweb/base).latest .base
scratch/main> pull git(https://github.com/org/repo:some-branch).some.pathFor Unison version 0.5.21 and later, use libInstall to install libraries.
The pull command is used to pull definitions from another codebase into the current codebase. Commonly used to download Unison dependencies.
You can pull Unison code from unison's own code-hosting platform, unison share or from a git repo using the git url format.
The first argument to pull is any Git URL that identifies the namespace to pull from and the second argument (if given) identifies a namespace that the remote codebase will be merged into. If a second argument is not supplied, then the remote codebase will be merged into the current namespace.
To optionally pull from a Git branch, the repository name is followed by : and the name of the branch.