mirror of
https://github.com/TronoSfera/backupy-agent.git
synced 2026-05-18 18:13:30 +03:00
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.
10 lines
254 B
Go
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() }
|