Preserve literal characters in shared file paths
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user