diff --git a/internal/ghasum/atoms.go b/internal/ghasum/atoms.go index 0f9007d..94d0490 100644 --- a/internal/ghasum/atoms.go +++ b/internal/ghasum/atoms.go @@ -125,7 +125,6 @@ func compute(cfg *Config, actions []gha.GitHubAction, algo checksum.Algo) ([]sum } } - // checksum, err := dirhash.HashDir(actionDir, "", hashes[algo]) checksum, err := checksum.Compute(actionDir, algo) if err != nil { return nil, fmt.Errorf("could not compute checksum for %q: %v", action, err) diff --git a/internal/ghasum/errors.go b/internal/ghasum/errors.go index cb427b3..2de9b6c 100644 --- a/internal/ghasum/errors.go +++ b/internal/ghasum/errors.go @@ -25,35 +25,35 @@ var ( // initialized but is not. ErrNotInitialized = errors.New("ghasum has not yet been initialized") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileCreate is the error used when the ghasum checksum file could not // be created. ErrSumfileCreate = errors.New("could not create a checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileEncode is the error used when the ghasum checksum file could not // be encoded. ErrSumfileEncode = errors.New("could not encode the checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileOpen is the error used when the ghasum checksum file could not // be opened. ErrSumfileOpen = errors.New("could not open the checksum file") - // ErrNotInitialized is the error used when a ghasum checksum file could not + // ErrSumfileDecode is the error used when a ghasum checksum file could not // be decoded. ErrSumfileDecode = errors.New("could not decode the checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileRead is the error used when the ghasum checksum file could not // be read. ErrSumfileRead = errors.New("could not read from the checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileRemove is the error used when the ghasum checksum file could not // be removed. ErrSumfileRemove = errors.New("could not remove the checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileUnlock is the error used when the ghasum checksum file could not // be unlocked after usage. ErrSumfileUnlock = errors.New("could not unlock the checksum file") - // ErrNotInitialized is the error used when the ghasum checksum file could not + // ErrSumfileWrite is the error used when the ghasum checksum file could not // be written to. ErrSumfileWrite = errors.New("could not write to the checksum file") )