Closed sgotti closed 8 years ago
This patch adds the --keep option to specify a pattern to keep additional files inside needed packages.
The pattern match will be relative to the deeper vendor dir. Supports double star (**) patterns. (see https://golang.org/pkg/path/filepath/#Match and https://github.com/bmatcuk/doublestar).
Can be specified multiple times.
For example to keep all the files with json extension use the **/*.json pattern.
**/*.json
/cc @s-urbaniak
LGTM :+1:
@s-urbaniak Thanks! merging. Please let me know if all works correctly.
This patch adds the --keep option to specify a pattern to keep additional files inside needed packages.
The pattern match will be relative to the deeper vendor dir. Supports double star (**) patterns. (see https://golang.org/pkg/path/filepath/#Match and https://github.com/bmatcuk/doublestar).
Can be specified multiple times.
For example to keep all the files with json extension use the
**/*.json
pattern.