feat: semver ranges, lockfile, and package aliases - #33
Merged
Conversation
clawdeeo
force-pushed
the
feat/v0.4.0-roadmap
branch
from
April 23, 2026 17:37
e02e503 to
31b3eec
Compare
Three new features for reproducible and convenient package management: **Semver ranges** - Install with version constraints: ^, ~, >=, <=, >, < - Example: gitclaw install BurntSushi/ripgrep "^14" **Lockfile** - gitclaw lock - generates gitclaw.lock from installed packages - gitclaw install --locked - reproduces exact versions from lockfile - TOML format with owner/repo/version/asset **Package aliases** - gitclaw alias add rg BurntSushi/ripgrep - gitclaw alias remove rg / gitclaw alias list - Aliases resolve in install, uninstall, and run commands - Clash detection: warns when alias name matches installed repo - Clash detection: warns when installing repo whose name matches alias **Spec and workflow improvements** - Added .specs/v0.4.0-roadmap.md with acceptance criteria - Updated TEMPLATE.md: lightweight path for small fixes - Deliverable-based checkpoints instead of percentages - Post-mortem lessons go to AGENTS.md for persistence - Specs tracked in git, archived after merge - Definition of Done: explicit local test gate before push **Files added** - src/core/semver.rs - VersionConstraint parsing and matching - src/core/lockfile.rs - Lockfile struct and TOML serialization - src/core/alias.rs - AliasMap CRUD and resolution - tests/semver.rs, tests/lockfile.rs, tests/alias.rs - integration tests - .specs/v0.4.0-roadmap.md - feature specification **Dependencies** - semver = "1" for version constraint parsing 121 tests pass, clippy clean, fmt clean
clawdeeo
force-pushed
the
feat/v0.4.0-roadmap
branch
from
April 23, 2026 18:53
31b3eec to
5099c55
Compare
clawdeeo
added a commit
that referenced
this pull request
Apr 23, 2026
clawdeeo
added a commit
that referenced
this pull request
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.4.0 — Dependency Management
Three new features for reproducible and convenient package management.
Semver ranges
Install with version constraints instead of just "latest":
Lockfile
Reproducible installs across machines:
Lockfile format (TOML):
Package aliases
Short names for frequently used packages:
Aliases work in install, uninstall, and run commands. Includes clash detection when alias names conflict with repo names.
Changes
src/core/semver.rs,src/core/lockfile.rs,src/core/alias.rstests/semver.rs,tests/lockfile.rs,tests/alias.rssemver = \"1\"Quality
-D warnings)cargo fmtcleanReady for review.