diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-09-16 13:56:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-09-16 13:57:07 +0900 |
| commit | abab2782c4316a6f14500c38854c427d21fb0423 (patch) | |
| tree | 9acbf54227f1dd1df728327b23e693c97a379f9e /pkg/archive_test.go | |
| parent | 56572324956cfaa9039f7d7b7885cb3fec22f3fb (diff) | |
pkg: write archive status
Same idea behind the previous change, although this is more often used
by the external cache implementations. This is a revision of the
archiveArtifact to avoid inconsistent state from previously cured
archiveArtifact lacking their status files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'pkg/archive_test.go')
| -rw-r--r-- | pkg/archive_test.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkg/archive_test.go b/pkg/archive_test.go index 44ea56a7..2847fca3 100644 --- a/pkg/archive_test.go +++ b/pkg/archive_test.go @@ -202,7 +202,17 @@ func TestArchiveArtifact(t *testing.T) { "checksum/CBPcoVHuVUTVRCMbRl8J30RSSzm_tyfuXaZ-HlZsanY1sY50meOVmgaWDrGKbx9F/devices/uevent": {Mode: 0600, Data: []byte("add")}, "identifier": {Mode: fs.ModeDir | 0700}, - "identifier/-zXKfphyWM2Ko7VMVURaEMSuixNokFSe0xFbnwR2RtRtvMrcPGWalV0LIn45PXTY": {Mode: fs.ModeSymlink | 0777, Data: []byte("../checksum/CBPcoVHuVUTVRCMbRl8J30RSSzm_tyfuXaZ-HlZsanY1sY50meOVmgaWDrGKbx9F")}, + "identifier/iyvWY0irMoW4AVRnG_du07d_nAEUtbHdeiaAYRdp-vf3wstM9u67IokOsPfU9eyM": {Mode: fs.ModeSymlink | 0777, Data: []byte("../checksum/CBPcoVHuVUTVRCMbRl8J30RSSzm_tyfuXaZ-HlZsanY1sY50meOVmgaWDrGKbx9F")}, + + "status": {Mode: fs.ModeDir | 0700}, + "status/iyvWY0irMoW4AVRnG_du07d_nAEUtbHdeiaAYRdp-vf3wstM9u67IokOsPfU9eyM": {Mode: 0400, Data: []byte(statusHeader + `drwx------ block +-rw------- block/uevent (0 bytes) +drwx------ devices +drwx------ devices/empty +drwx------ devices/sub +-rw------- devices/sub/uevent (3 bytes) +-rw------- devices/uevent (3 bytes) +`)}, "substitute": {Mode: fs.ModeDir | 0700}, "work": {Mode: fs.ModeDir | 0700}, |
