1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: typo in artifact checksum error message (#1785)

Signed-off-by: Andy Bursavich <abursavich@gmail.com>
This commit is contained in:
Andy Bursavich 2020-09-02 12:44:25 -07:00 committed by GitHub
parent 005b67dbed
commit 3f85797df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func (a Artifact) Checksum(algorithm string) (string, error) {
case "sha512":
h = sha512.New()
default:
return "", fmt.Errorf("invalid algorith: %s", algorithm)
return "", fmt.Errorf("invalid algorithm: %s", algorithm)
}
_, err = io.Copy(h, file)
if err != nil {

View File

@ -198,7 +198,7 @@ func TestInvalidAlgorithm(t *testing.T) {
Path: f.Name(),
}
sum, err := artifact.Checksum("sha1ssss")
require.EqualError(t, err, `invalid algorith: sha1ssss`)
require.EqualError(t, err, `invalid algorithm: sha1ssss`)
require.Empty(t, sum)
}