Repository navigation
Conversation
edcfad4 to
4b2cc87
Compare
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
Thanks. The hard-link handling holds up: I couldn't make extraction write outside the target (links through outside symlinks, Extraction isn't opt-in, so these behaviour changes reach existing callers:
About a third of the main change (path resolution, the directory cache, |
|
I've updated the branch in response to your review:
Added regression coverage for absent targets and dependent links, continuation, existing-output preservation, disappearing or non-regular targets, unsafe mapped paths, and permission-denied lookups. Local JDK 17/Linux validation passed: 873 tests, zero failures/errors, 22 skipped, plus build, formatting, and Javadoc. Windows and macOS remain unvalidated. |
slachiewicz
left a comment
There was a problem hiding this comment.
Recommendation: hold this until #548 is merged and CI has run on the head commit.
- This PR is stacked on #548 (still open, unreviewed), so it cannot merge on its own. Once #548 lands, please rebase so the diff shows only the hard-link changes.
- The CI run on 1ca02bb is "action_required" and never executed, so the only validation is the local JDK 17/Linux run. Windows and macOS are unvalidated, and the change touches path and link handling. I'll approve the workflow run. Please push or rebase once #548 is in so CI runs on the final state.
- Thanks for working through the six review points. The replies look reasonable, but I haven't re-read the updated branch yet. I'll do that after #548 and a green CI.
- Nit: the documentation link in the description points at your fork. Please drop it or point to the in-repo page.
0b8f87f to
fedd89f
Compare
Extract 512 physical links and check their shared inode and timestamp. Exercise a separate 2000-link logical chain through TarFile content resolution without requiring thousands of filesystem links.
PR stack (merge order)
Compare #548 → #493
Adds streaming TAR hard-link extraction, opt-in preservation, and logical alias contents through archived file sets.
HardLinkFailureMode.COPY_TARGET);FAILandSKIPare also available. Copies use final on-disk target contents and do not share an inode.TarArchiver.setPreserveHardLinks(true)preserves resources with matching identities and compatible metadata. The default remainsfalse; transformed contents, unknown identities, and conflicting metadata produce full entries.TAR creation retains its existing copy-error handling in both preservation modes. Only successfully written entries become hard-link targets. Collections supplied through
addResources()remain caller-owned; the archiver closes internally created collections and the streams and closeable iterators it consumes.Uses released Plexus IO 3.8.1 and addresses #286.
On Linux,
clean verify javadoc:javadocpassed on JDK 17 and 26. Each run had 942 passes and 28 skips, with zero failures or errors.Documentation