IntroductionInstallationFrequently asked questionsKnown issues
Tutorial
Writing Jsonnet
Advanced features
References
Installing and publishing
The tool for dealing with libraries is
jsonnet-bundler
. It can
install packages from any git source using ssh
and GitHub over https
.
Install a library
To install a library from GitHub, use one of the following:
$ jb install github.com/<user>/<repo>
$ jb install github.com/<user>/<repo>/<subdir>
$ jb install github.com/<user>/<repo>/<subdir>@<version>
Otherwise, use the ssh syntax:
$ jb install git+ssh://git@mycode.server:<path-to-repo>.git
$ jb install git+ssh://git@mycode.server:<path-to-repo>.git/<subdir>
$ jb install git+ssh://git@mycode.server:<path-to-repo>.git/<subdir>@<version>
Note: version
may be any git ref, such as commits, tags or branches
Publish to Git(Hub)
Publishing is as easy as committing and pushing to a git remote. GitHub is recommended, as it is most common and supports faster installing using http archives.