Skip to content

Commit f12b881

Browse files
TBBleLK4D4
authored andcommitted
Consider '.syso' as a Go file for vendoring
This fixes an issue where importing a package in order to bundle a .syso doesn't work, because vndr deletes the .syso file when cleaning. Signed-off-by: Paul "TBBle" Hampson <[email protected]>
1 parent 67927bd commit f12b881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func isInterestingDir(path string) bool {
5151

5252
func isGoFile(path string) bool {
5353
ext := filepath.Ext(path)
54-
return ext == ".go" || ext == ".c" || ext == ".h" || ext == ".s" || ext == ".proto"
54+
return ext == ".go" || ext == ".c" || ext == ".h" || ext == ".s" || ext == ".proto" || ext == ".syso"
5555
}
5656

5757
// licenseFilesRegexp is a regexp of file names that are likely to contain licensing information

0 commit comments

Comments
 (0)