ignore symlinks to match go1.11.4 checksum algorithm changes

This commit is contained in:
Serge Zaitsev
2019-01-14 11:53:30 +01:00
parent c16efb7791
commit a7494ce36f
2 changed files with 12 additions and 1 deletions

View File

@@ -163,6 +163,9 @@ func (g *gitVCS) Zip(ctx context.Context, version Version) (io.ReadCloser, error
if submodule(f.Name) {
continue
}
if !f.Mode.IsRegular() {
continue
}
name := f.Name
if strings.HasPrefix(name, prefix) {
name = strings.TrimPrefix(name, prefix)