Skip to content

Commit 60ca400

Browse files
authored
Support LICENSES filename in manifest validation (#692)
Some plugins like https://github.com/jetstack/cert-manager store the license information in a file called LICENSES. This adds support for this filename to the manifest validation. Fixes #691 Signed-off-by: Bastian Hofmann <[email protected]>
1 parent 1d7b651 commit 60ca400

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

cmd/validate-krew-manifest/main.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,14 @@ func installPlatformSpec(manifestFile string, p index.Platform) error {
166166
}
167167

168168
var licenseFiles = map[string]struct{}{
169-
"license": {},
170-
"license.txt": {},
171-
"license.md": {},
172-
"copying": {},
173-
"copying.txt": {},
169+
"license": {},
170+
"license.txt": {},
171+
"license.md": {},
172+
"licenses": {},
173+
"licenses.txt": {},
174+
"licenses.md": {},
175+
"copying": {},
176+
"copying.txt": {},
174177
}
175178

176179
func validateLicenseFileExists(krewRoot string) error {

0 commit comments

Comments
 (0)