1
0
forked from rosa/hakurei

internal/rosa: use builtin for checksum warning

This avoids having to configure the logger early.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-19 17:50:12 +09:00
parent 3981d44757
commit 8ee53a5164

View File

@@ -3,7 +3,6 @@ package rosa
import ( import (
"errors" "errors"
"log"
"path" "path"
"runtime" "runtime"
"slices" "slices"
@@ -28,7 +27,7 @@ const (
func mustDecode(s string) pkg.Checksum { func mustDecode(s string) pkg.Checksum {
var fallback = pkg.Checksum{} var fallback = pkg.Checksum{}
if s == "" { if s == "" {
log.Println( println(
"falling back to", "falling back to",
pkg.Encode(fallback), pkg.Encode(fallback),
"for unpopulated checksum", "for unpopulated checksum",