Skip to content

Commit

Permalink
Consider '.syso' as a Go file for vendoring
Browse files Browse the repository at this point in the history
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 <Paul.Hampson@Pobox.com>
  • Loading branch information
TBBle authored and LK4D4 committed Jul 28, 2020
1 parent 67927bd commit f12b881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func isInterestingDir(path string) bool {

func isGoFile(path string) bool {
ext := filepath.Ext(path)
return ext == ".go" || ext == ".c" || ext == ".h" || ext == ".s" || ext == ".proto"
return ext == ".go" || ext == ".c" || ext == ".h" || ext == ".s" || ext == ".proto" || ext == ".syso"
}

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

0 comments on commit f12b881

Please sign in to comment.