mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-18 03:56:52 +02:00
fix(nix): improve error message
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
823bc6062d
commit
81bd82b13b
@ -30,7 +30,7 @@ type errNoArchivesFound struct {
|
||||
}
|
||||
|
||||
func (e errNoArchivesFound) Error() string {
|
||||
return fmt.Sprintf("no linux/macos archives found matching goos=[darwin linux] goarch=[amd64 arm arm64 386] goarm=[6 7] goamd64=%s ids=%v", e.goamd64, e.ids)
|
||||
return fmt.Sprintf("no archives found matching goos=[darwin linux] goarch=[amd64 arm arm64 386] goarm=[6 7] goamd64=%s ids=%v", e.goamd64, e.ids)
|
||||
}
|
||||
|
||||
var (
|
||||
|
@ -411,7 +411,7 @@ func TestErrNoArchivesFound(t *testing.T) {
|
||||
require.EqualError(t, errNoArchivesFound{
|
||||
goamd64: "v1",
|
||||
ids: []string{"foo", "bar"},
|
||||
}, "no linux/macos archives found matching goos=[darwin linux] goarch=[amd64 arm arm64 386] goarm=[6 7] goamd64=v1 ids=[foo bar]")
|
||||
}, "no archives found matching goos=[darwin linux] goarch=[amd64 arm arm64 386] goarm=[6 7] goamd64=v1 ids=[foo bar]")
|
||||
}
|
||||
|
||||
type fakeNixShaPrefetcher map[string]string
|
||||
|
Loading…
x
Reference in New Issue
Block a user