mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-11 23:50:05 +01:00
Bug fix: for compare known, on windows, use "\" instead of "/" (#115)
* Enhancement: Subdir detect runtime os. If windows changes "\" to "/" * Bug fix: for compare known, on windows, use "\" instead of "/" * Bug fix: for compare known, on windows, use "\" instead of "/" Co-authored-by: c0feec0der <>
This commit is contained in:
parent
9e88f6d38d
commit
15c0828a2f
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ func checkLegacyNameTaken(legacyName string, pkgName string) (bool, error) {
|
||||||
func known(deps map[string]deps.Dependency, p string) bool {
|
func known(deps map[string]deps.Dependency, p string) bool {
|
||||||
p = filepath.ToSlash(p)
|
p = filepath.ToSlash(p)
|
||||||
for _, d := range deps {
|
for _, d := range deps {
|
||||||
k := d.Name()
|
k := filepath.ToSlash(d.Name())
|
||||||
if strings.HasPrefix(p, k) || strings.HasPrefix(k, p) {
|
if strings.HasPrefix(p, k) || strings.HasPrefix(k, p) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue