1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

fix: treatment for when an extra file doesnt exist

This commit is contained in:
Carlos Alexandro Becker 2017-12-26 14:56:20 -02:00
parent 38454e78f3
commit 219babd044
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -156,6 +156,9 @@ func process(ctx *context.Context, docker config.Docker, artifact artifact.Artif
// walks the src, recreating dirs and hard-linking files
func link(src, dest string) error {
return filepath.Walk(src, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
// We have the following:
// - src = "a/b"
// - dest = "dist/linuxamd64/b"