backupy-agent/apps/agent/internal/state/sha.go
TronoSfera cc96a0b773 fix: include apps/agent/internal/state package (gitignore was eating it)
The .gitignore rule "state/" was unanchored, so git also ignored
apps/agent/internal/state/ — the BoltDB-backed queue persistence
package. CI build failed with:
  internal/queue/queue.go:13:2: no required module provides package
  github.com/backupy/backupy/apps/agent/internal/state

Anchored the rule to repo root (/state/, /var/) so it only matches
the runtime data directory, never a Go package.
2026-05-17 20:26:04 +03:00

10 lines
254 B
Go

package state
import (
"crypto/sha256"
"hash"
)
// sha256New is a function value compatible with hkdf.New's first arg.
// Wrapping the constructor lets us swap in a test double if ever needed.
var sha256New = func() hash.Hash { return sha256.New() }