Fix paths on Windows

This commit is contained in:
Lennart Kats 2023-07-07 18:04:28 +02:00
parent cbd306825b
commit 54a66c0120
1 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package mutator
import (
"context"
"fmt"
"path/filepath"
"path"
"github.com/databricks/cli/bundle"
"github.com/databricks/cli/bundle/config"
@ -61,9 +61,9 @@ func processDevelopmentMode(b *bundle.Bundle) error {
}
for i := range r.Experiments {
path := r.Experiments[i].Name
dir := filepath.Dir(path)
base := filepath.Base(path)
filepath := r.Experiments[i].Name
dir := path.Dir(filepath)
base := path.Base(filepath)
if dir == "." {
r.Experiments[i].Name = "[dev] " + base
} else {