diff --git a/legacy/builder/builder_utils/utils.go b/legacy/builder/builder_utils/utils.go index 337b82be780..86299560597 100644 --- a/legacy/builder/builder_utils/utils.go +++ b/legacy/builder/builder_utils/utils.go @@ -154,11 +154,14 @@ func findAllFilesInFolder(sourcePath string, recurse bool) ([]string, error) { } for _, folder := range folders { - otherSources, err := findAllFilesInFolder(filepath.Join(sourcePath, folder.Name()), recurse) - if err != nil { - return nil, i18n.WrapError(err) + if !utils.IsSCCSOrHiddenFile(folder) { + // Skip SCCS directories as they do not influence the build and can be very large + otherSources, err := findAllFilesInFolder(filepath.Join(sourcePath, folder.Name()), recurse) + if err != nil { + return nil, i18n.WrapError(err) + } + sources = append(sources, otherSources...) } - sources = append(sources, otherSources...) } }