1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-03 00:57:43 +02:00

chore: fix linter errors (#5111)

If applied, this commit will fix the current linter errors, which are
currently causing all Github Actions to fail.

See, for example, the latest `main` run:
https://github.com/goreleaser/goreleaser/actions/runs/10607661596/job/29400451251.
This commit is contained in:
Tom Payne
2024-08-30 22:03:10 +02:00
committed by GitHub
parent 599ce44c74
commit 3a36a49984
7 changed files with 111 additions and 106 deletions

View File

@ -1,7 +1,7 @@
package blob
import (
"fmt"
"errors"
"testing"
"github.com/goreleaser/goreleaser/v2/internal/testctx"
@ -28,7 +28,7 @@ func TestErrors(t *testing.T) {
"other": "failed to write to bucket: other",
} {
t.Run(k, func(t *testing.T) {
require.EqualError(t, handleError(fmt.Errorf(k), "someurl"), v)
require.EqualError(t, handleError(errors.New(k), "someurl"), v)
})
}
}