feat: add PURL copy semantics - #21
Open
indexzero wants to merge 5 commits into
Open
Conversation
Model GitHub PURL sources and glob-bearing subpaths as explicit copy plans before mutating the destination. Add root-relative lineage so verification and catalogs follow the copied layout, while rejecting traversal, links, special files, collisions, and metadata replacement.
Accept vlurp SOURCE... DEST with PURL-pattern sources and keep legacy fetch flags as a migration path. Carry the same source model through batch, pin, outdated, upgrade, verification lineage, and comment-preserving vlurpfile rewrites.
Document the cp operand model, PURL pattern extension, destination rules, safety constraints, lineage, and manifest migration. Add live GitHub and Linux PTY coverage plus a minor release changeset.
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.
Summary
vlurp owner/repositoryas the easy, first-documented fetch interfacevlurp SOURCE... DESTcopying usingpkg:githubPURLs--filter, and all named presets as first-class supported interfaces--globand case-insensitive--iglobtransfer patterns; leading!excludes matches--presetcompose with PURL copy operands, with explicit transfer patterns refining preset rulesThe operands determine source selection and destination placement. Presets and transfer globs determine which files beneath each selected source are copied.
Verification
pnpm test— 142 passedpnpm lint— passed with 2 pre-existing scanner warningspnpm test:e2e:ci— live GitHub redirect, packed-install, and combined preset/glob/iglob PURL coverage passed; Linux executes the PTY cases in CIgit diff --checkThe branch is rebased onto the post-2.0.1
mainrelease commit.