зеркало из https://github.com/golang/dep.git
prune: Fix handling of "legal" source files
Do not consider source files in the scope of isPreservedFile(). Those are properly handled in the unused package logic.
This commit is contained in:
Родитель
5029495a63
Коммит
03ec624619
|
@ -322,7 +322,12 @@ func pruneNonGoFiles(fsState filesystemState) error {
|
|||
|
||||
// isPreservedFile checks if the file name indicates that the file should be
|
||||
// preserved based on licenseFilePrefixes or legalFileSubstrings.
|
||||
// This applies only to non-source files.
|
||||
func isPreservedFile(name string) bool {
|
||||
if isSourceFile(name) {
|
||||
return false
|
||||
}
|
||||
|
||||
name = strings.ToLower(name)
|
||||
|
||||
for _, prefix := range licenseFilePrefixes {
|
||||
|
|
Загрузка…
Ссылка в новой задаче