fix: add skills to allowed namespace subdirectories
The README validation tool has an allowlist of directories permitted under registry/<namespace>/. Add 'skills' to that list so the skills/README.md catalogue entry passes validation. Skills are added to supportedUserNameSpaceDirectories but not to supportedResourceTypes, so the skills directory is allowed to exist without being validated as a module or template.
This commit is contained in:
parent
42263af7a0
commit
d8add4d3c1
@ -11,7 +11,7 @@ import (
|
|||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var supportedUserNameSpaceDirectories = append(supportedResourceTypes, ".images")
|
var supportedUserNameSpaceDirectories = append(supportedResourceTypes, ".images", "skills")
|
||||||
|
|
||||||
// validNameRe validates that names contain only alphanumeric characters and hyphens
|
// validNameRe validates that names contain only alphanumeric characters and hyphens
|
||||||
var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`)
|
var validNameRe = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user