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