Skip to content

Commit

Permalink
Keep "go.mod" for reference
Browse files Browse the repository at this point in the history
Related to #5 this allows a human (or maybe a tool) to see if what
is being vendored by the top-level project is consistent with what the
vendored projects themselves are vendoring.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah authored and LK4D4 committed Apr 28, 2019
1 parent f3d27fa commit a6135d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ func isLicenseFile(path string) bool {
}

func isVendorConfFile(path string) bool {
return filepath.Base(path) == "vendor.conf"
switch filepath.Base(path) {
case "go.mod", "vendor.conf":
return true
default:
return false
}
}

// cleanVendor removes files from unused packages and non-go files
Expand Down

0 comments on commit a6135d4

Please sign in to comment.