Align bundle path validation coverage
This commit is contained in:
@@ -23,8 +23,7 @@ func ValidateSourcePath(value string) error {
|
||||
return fmt.Errorf("source path %q must be a clean relative slash-separated path", value)
|
||||
}
|
||||
}
|
||||
switch value {
|
||||
case ManifestName, distributorStateName:
|
||||
if path.Base(value) == ManifestName || path.Base(value) == distributorStateName {
|
||||
return fmt.Errorf("%q is reserved", value)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user