refactor: Export test compatibility functions from worker package
- Added DirOverallSHA256Hex re-export from integrity package - Added NormalizeSHA256ChecksumHex re-export from integrity package - Added integrity import to worker.go - Fixed import errors for test compilation Build status: Compiles successfully
This commit is contained in:
parent
4c8c9dfe4b
commit
417133afce
1 changed files with 11 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/jfraeys/fetch_ml/internal/metrics"
|
||||
"github.com/jfraeys/fetch_ml/internal/resources"
|
||||
"github.com/jfraeys/fetch_ml/internal/worker/executor"
|
||||
"github.com/jfraeys/fetch_ml/internal/worker/integrity"
|
||||
"github.com/jfraeys/fetch_ml/internal/worker/lifecycle"
|
||||
)
|
||||
|
||||
|
|
@ -138,3 +139,13 @@ func (w *Worker) getGPUDetector() GPUDetector {
|
|||
func SelectDependencyManifest(filesPath string) (string, error) {
|
||||
return executor.SelectDependencyManifest(filesPath)
|
||||
}
|
||||
|
||||
// DirOverallSHA256Hex re-exports the integrity function for test compatibility.
|
||||
func DirOverallSHA256Hex(root string) (string, error) {
|
||||
return integrity.DirOverallSHA256Hex(root)
|
||||
}
|
||||
|
||||
// NormalizeSHA256ChecksumHex re-exports the integrity function for test compatibility.
|
||||
func NormalizeSHA256ChecksumHex(checksum string) (string, error) {
|
||||
return integrity.NormalizeSHA256ChecksumHex(checksum)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue