Lock File
jnc automatically generates and maintains apixi.lock file in your workspace. The lock file records the exact versions and hashes of every package resolved for each environment and platform, ensuring fully reproducible builds.
How it works
- When you run
jnc add,jnc install, or any command that modifies dependencies, jnc solves the environment and writes the results topixi.lock. - The lock file contains the exact version, build string, and content hash for every package.
- On subsequent installs, jnc reads the lock file and installs the exact same packages — no re-solving required.
Committing the lock file
Always commitpixi.lock to version control. This ensures that every developer and CI system gets the same environment.
Updating the lock file
Update all dependencies
pixi.toml and updates the lock file.
Update specific packages
Upgrade with loosened constraints
Frozen and locked modes
Frozen
Install exactly what’s in the lock file, even if the manifest has changed:Locked
Install from the lock file, but abort if the lock file is out of date with the manifest:Lock file for multiple platforms
The lock file contains solutions for every platform listed in your manifest:linux-aarch64 platform is solved and recorded in pixi.lock, targeting NVIDIA Jetson (JetPack 6) devices. Additional platforms may be supported in the future.