aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/pkg_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-02 15:39:42 +0900
committerOphestra <cat@gensokyo.uk>2026-01-02 15:39:42 +0900
commit3078c41ce74d7c04a7db3e47cdc00a5d49496887 (patch)
treeaab3a0ce7ec87c9b7ba99491d432599d07c91092 /internal/pkg/pkg_test.go
parente9de5d3aca533ec27839661b2d311b4fcb7a13fb (diff)
internal/pkg: encode entry in custom format
The fact that Gob serialisation is deterministic is an implementation detail. This change replaces Gob with a simple custom format. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg_test.go')
-rw-r--r--internal/pkg/pkg_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go
index c73049e5..bd2096d9 100644
--- a/internal/pkg/pkg_test.go
+++ b/internal/pkg/pkg_test.go
@@ -211,7 +211,7 @@ func TestCache(t *testing.T) {
}
}, func(t *testing.T, base *check.Absolute) {
wantChecksum := pkg.MustDecode(
- "lvK4lY9bQUFscHpxqHmiPvptjUwOgn3BFhzCXZMeupkY1n22WUPSuh7pswEvVZrx",
+ "ZNSQH-mjhtIbFvi51lQ0UjatjoS8_5ILrBPNWlO2LWTq9P6MJEnekYzP0esUJnVr",
)
if checksum, err := pkg.HashDir(base); err != nil {
t.Fatalf("HashDir: error = %v", err)