Skip to content

Commit

Permalink
Use 3rd party glob implementation.
Browse files Browse the repository at this point in the history
go's native implementation is broken: golang/go#11862
  • Loading branch information
dcu committed Mar 28, 2016
1 parent c6be8f3 commit 1522ebd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ package cmd

import (
"fmt"
"path/filepath"

"code.cuadrado.xyz/capn-hook/core"
"github.com/mattn/go-zglob"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -46,7 +46,7 @@ var generatorCmd = &cobra.Command{
}

func findFiles(pattern string) []string {
files, err := filepath.Glob(pattern)
files, err := zglob.Glob(pattern)
if err != nil {
return []string{}
}
Expand Down
6 changes: 4 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ package: code.cuadrado.xyz/capn-hook
import:
- package: github.com/spf13/cobra
- package: gopkg.in/yaml.v2
- package: github.com/mattn/go-zglob

0 comments on commit 1522ebd

Please sign in to comment.