aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-19 20:10:51 +0900
committerOphestra <cat@gensokyo.uk>2026-01-19 21:29:56 +0900
commitd933234784bf3bd511869d55fb145dc1d9601ce1 (patch)
treea898f3c84b35155e0154b95c56016cd866b26228 /cmd
parent1c49c75f95855a6b75689f1962dc918ed67c2ccc (diff)
internal/pkg: make checksum available to cure
This enables deduplication by value as implemented in execArtifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mbf/main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index 5904d9df..7a0a78e7 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -10,6 +10,7 @@ import (
"path/filepath"
"runtime"
"syscall"
+ "unique"
"hakurei.app/command"
"hakurei.app/container"
@@ -113,7 +114,7 @@ func main() {
_, _, _, stage3 := rosa.Std.NewLLVM()
var (
pathname *check.Absolute
- checksum [2]pkg.Checksum
+ checksum [2]unique.Handle[pkg.Checksum]
)
if pathname, checksum[0], err = cache.Cure(stage2); err != nil {
@@ -127,8 +128,8 @@ func main() {
if checksum[0] != checksum[1] {
err = &pkg.ChecksumMismatchError{
- Got: checksum[0],
- Want: checksum[1],
+ Got: checksum[0].Value(),
+ Want: checksum[1].Value(),
}
}
return