1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-15 13:53:25 +02:00

test: do not fail if not rel

This commit is contained in:
Carlos Alexandro Becker 2024-10-14 23:50:22 -03:00
parent d933d8b316
commit 2b73005369
No known key found for this signature in database

@ -430,8 +430,10 @@ func TestBuild(t *testing.T) {
list := ctx.Artifacts
require.NoError(t, list.Visit(func(a *artifact.Artifact) error {
s, err := filepath.Rel(folder, a.Path)
a.Path = s
return err
if err == nil {
a.Path = s
}
return nil
}))
require.ElementsMatch(t, list.List(), []*artifact.Artifact{
{