Skip to content

Commit 724338f

Browse files
committed
Fixing builder hash.
1 parent 45837b9 commit 724338f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

glob/hash.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"slices"
1313
"strings"
1414
"sync"
15+
16+
"get.pme.sh/pmesh/util"
1517
)
1618

1719
const hashSize = sha1.Size
@@ -77,8 +79,9 @@ func (l *HashList) Dir(prefix string) Checksum {
7779
}
7880
func (l *HashList) All() Checksum {
7981
h := hasher()
80-
for _, hash := range l.HashMap {
81-
h.Write(hash.Slice())
82+
for _, file := range l.StableList {
83+
h.Write(util.UnsafeBuffer(file))
84+
h.Write(l.HashMap[file].Slice())
8285
}
8386
return Checksum(h.Sum(nil))
8487
}

session/runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (t *Runner) ServeJetstream(ctx context.Context, gw *enats.Gateway, msg jets
278278
}
279279
msg.Term()
280280
} else {
281-
logger.Trace().Msg("Task completed")
281+
logger.Debug().Msg("Task completed")
282282
if len(data) != 0 {
283283
_, err := gw.ResultKV.Put(
284284
context.Background(),

0 commit comments

Comments
 (0)