| |
@@ -173,7 +173,8 @@
|
| |
// Cited from https://golang.org/cmd/go/#hdr-Package_lists:
|
| |
// Directory and file names that begin with "." or "_" are ignored
|
| |
// by the go tool, as are directories named "testdata".
|
| |
- if base := filepath.Base(relPath); base[0] == '.' || base[0] == '_' || base == "testdata" || base == "vendor" {
|
| |
+ // However, testdata can be used by other -devel packages
|
| |
+ if base := filepath.Base(relPath); base[0] == '.' || base[0] == '_' || base == "vendor" {
|
| |
return filepath.SkipDir
|
| |
}
|
| |
|
| |
Testdata can be used by other packages, e.g. github.com/go-git/go-git uses testdata of golang.org/x/crypto/ssh, but they are not provided by golang-x-crypto-devel, so building go-git (generated by go2rpm) fails because of failed dependency.
Also testdata are generally useful while developing and resulting binaries will not contain them anyway.