mirror of https://github.com/databricks/cli.git
Fix paths on Windows
This commit is contained in:
parent
cbd306825b
commit
54a66c0120
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue