vv get
Downloads and installs a remote module into the global module cache. Modules are cloned as Git repositories.
vv get github.com/user/repo
vv get github.com/user/repo@v1.0.0
Module Storage
By default, modules are stored in a global cache directory determined by the VVPATH environment
variable. If VVPATH is not set, it defaults to ~/.vv (e.g.,
C:\Users\Name\.vv on Windows or /home/name/.vv on Unix).
The cache structure follows the remote path:
$VVPATH/.cache/<domain>/<user>/<repo>[@version].
Resolution Order
When you import a module, vv searches for it in the following order:
- Local Vendor: A
.vv-modulesdirectory in the same folder as the importing file. - Project Vendor: A
.vv-modulesdirectory at the project root (wherevv.modis located). - Global Cache: The
.cachedirectory inside your$VVPATH.
The vv.sum file in your $VVPATH maintains checksums for all files in the global
cache to ensure integrity.