Appearance
vix add
Add a dependency from the Vix registry.
Usage
bash
vix add <namespace>/<name>@<version>Description
vix add:
- Adds a dependency to your project
- Requires an exact version (V1 registry model)
- Pins the resolved commit SHA in
vix.lock - Works with the local registry index
Before adding a dependency, you should sync the registry.
Sync Registry
bash
vix registry syncExample
bash
vix add gaspardkirira/tree@0.1.0Versioning Rules
- Exact version required
- No version ranges in V1
- Version is resolved to a commit SHA
- The commit is stored in
vix.lock
This ensures:
- Reproducible builds
- Deterministic dependency resolution
- No implicit upgrades
What Happens Internally
- Registry index is searched locally
- Version is resolved to a commit
- Entry is written to
vix.lock - Dependencies are installed via:
bash
vix depsNotes
- Requires prior
vix registry sync - Lockfile must be committed to version control
- Exact version required in current registry model
vix add is part of the deterministic dependency workflow in Vix.