feature:pin
Introduction
feature:pin pins every editable feature of the selected product to its newest release in .splent_cache. Run it after feature:release.
splent feature:pin
feature:pin
✓ notes → v1.3.0
✓ mailer → v1.3.2
✅ Pinned 2 feature(s) in pyproject.toml.
Run 'splent product:resolve' to update symlinks.
Each editable entry becomes <namespace>/<feature>@<version>. Then run product:resolve to move the links. Comments, blank lines, key order and quote style stay as they were in pyproject.toml.
--dry-run prints the same lines and writes nothing.
Which version it picks
The newest in .splent_cache/features/<namespace>/, ordered as versions, so v1.10.0 beats v1.9.0 and v1.2.3 beats v1.2.3-rc1. The forge is never asked.
A feature with no release in the cache is skipped. Release it, or fetch one with feature:clone.
⚠ notes no cached version found — skipping
A release published under a PyPI name of its own also gets its [tool.splent.distributions] entry, as feature:attach writes it.
Reference
| Option | Description |
|---|---|
--dry-run |
Show what would change and write nothing |
Requirements
- A selected product (
SPLENT_APP).
See also
feature:attachpins one feature to a chosen version.feature:outdatedchecks the pins against the forge.