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.