Preserve literal characters in shared file paths

This commit is contained in:
2026-10-10 14:20:54 +00:00
parent 54cc6baf95
commit c09c7a2ac7
3 changed files with 38 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ func insideVendor(moduleRelative string) bool {
}
func normalizeSharedFile(name string) (string, error) {
if name == "" || path.IsAbs(name) || strings.Contains(name, "\\") {
if name == "" || path.IsAbs(name) {
return "", fmt.Errorf("shared file path must be a repository-relative file path")
}
clean := path.Clean(name)