Commit 6503023
committed
oci: Switch to tar-core crate
Working on direct import from containers-storage: I hit on
the fact that our tar parsing was very hand-rolled and incomplete.
We didn't handle PAX overrides correctly, there was a big `todo!`
for global headers where we'd panic, etc.
Recently I did a new tar-core crate which is now part of
the composefs org - it's "sans-io" so works cleanly
with both sync and async parsing.
Update the code to use it.
The tar crate is retained as a dev-dependency for tar::Builder in
tests.
Assisted-by: OpenCode (Claude claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 1b48236 commit 6503023
4 files changed
Lines changed: 394 additions & 217 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments