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

using mattn glob

This commit is contained in:
Carlos Alexandro Becker 2017-05-11 12:43:04 -03:00
parent 5eac3fd7b1
commit ad175e7fd3
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 9 additions and 2 deletions

8
Gopkg.lock generated
View File

@ -1,4 +1,4 @@
memo = "85c15b94eaf073e2c6e87a85ac2088f1d61889c8ddcc8542c09145f0f816c6af"
memo = "3cbc12d80513bcbb0ac166d404600ffbc63b1c301b5c6d3722dad30db6f6a549"
[[projects]]
name = "github.com/davecgh/go-spew"
@ -24,6 +24,12 @@ memo = "85c15b94eaf073e2c6e87a85ac2088f1d61889c8ddcc8542c09145f0f816c6af"
packages = ["query"]
revision = "53e6ce116135b80d037921a7fdd5138cf32d7a8a"
[[projects]]
branch = "master"
name = "github.com/mattn/go-zglob"
packages = [".","fastwalk"]
revision = "95345c4e1c0ebc9d16a3284177f09360f4d20fab"
[[projects]]
name = "github.com/pmezard/go-difflib"
packages = ["difflib"]

View File

@ -13,6 +13,7 @@ import (
"github.com/goreleaser/goreleaser/internal/ext"
"github.com/goreleaser/goreleaser/pipeline/archive/tar"
"github.com/goreleaser/goreleaser/pipeline/archive/zip"
"github.com/mattn/go-zglob"
"golang.org/x/sync/errgroup"
)
@ -74,7 +75,7 @@ func create(ctx *context.Context, platform, name string) error {
func findFiles(ctx *context.Context) (result []string, err error) {
for _, glob := range ctx.Config.Archive.Files {
files, err := filepath.Glob(glob)
files, err := zglob.Glob(glob)
if err != nil {
return result, err
}