mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-04-15 11:56:56 +02:00
fix: nfpm on windows (#2099)
This commit is contained in:
parent
c9ffa78c25
commit
2d3ec15bc6
@ -196,8 +196,8 @@ func create(ctx *context.Context, fpm config.NFPM, format, arch string, binaries
|
|||||||
dst := filepath.Join(fpm.Bindir, binary.Name)
|
dst := filepath.Join(fpm.Bindir, binary.Name)
|
||||||
log.WithField("src", src).WithField("dst", dst).Debug("adding binary to package")
|
log.WithField("src", src).WithField("dst", dst).Debug("adding binary to package")
|
||||||
contents = append(contents, &files.Content{
|
contents = append(contents, &files.Content{
|
||||||
Source: src,
|
Source: filepath.ToSlash(src),
|
||||||
Destination: dst,
|
Destination: filepath.ToSlash(dst),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -808,10 +808,14 @@ func TestSkipSign(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
t.Run("skip sign not set", func(t *testing.T) {
|
t.Run("skip sign not set", func(t *testing.T) {
|
||||||
|
contains := "open /does/not/exist.gpg: no such file or directory"
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
contains = "open /does/not/exist.gpg: The system cannot find the path specified."
|
||||||
|
}
|
||||||
require.Contains(
|
require.Contains(
|
||||||
t,
|
t,
|
||||||
Pipe{}.Run(ctx).Error(),
|
Pipe{}.Run(ctx).Error(),
|
||||||
`open /does/not/exist.gpg: no such file or directory`,
|
contains,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user