You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-17 01:42:37 +02:00
test: do not fail if not rel
This commit is contained in:
@ -430,8 +430,10 @@ func TestBuild(t *testing.T) {
|
|||||||
list := ctx.Artifacts
|
list := ctx.Artifacts
|
||||||
require.NoError(t, list.Visit(func(a *artifact.Artifact) error {
|
require.NoError(t, list.Visit(func(a *artifact.Artifact) error {
|
||||||
s, err := filepath.Rel(folder, a.Path)
|
s, err := filepath.Rel(folder, a.Path)
|
||||||
|
if err == nil {
|
||||||
a.Path = s
|
a.Path = s
|
||||||
return err
|
}
|
||||||
|
return nil
|
||||||
}))
|
}))
|
||||||
require.ElementsMatch(t, list.List(), []*artifact.Artifact{
|
require.ElementsMatch(t, list.List(), []*artifact.Artifact{
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user