mirror of https://github.com/databricks/cli.git
fix: Cleanup
This commit is contained in:
parent
234d971790
commit
5d09070fcb
|
@ -59,8 +59,7 @@ func transformDevelopmentMode(ctx context.Context, b *bundle.Bundle) {
|
|||
}
|
||||
|
||||
if !config.IsExplicitlyDisabled(t.SourceLinkedDeployment) {
|
||||
root := b.SyncRootPath
|
||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
||||
isInWorkspace := strings.HasPrefix(b.SyncRootPath, "/Workspace/")
|
||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||
enabled := true
|
||||
t.SourceLinkedDeployment = &enabled
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
|
||||
func TestFolderPermissionsInheritedWhenRootPathDoesNotExist(t *testing.T) {
|
||||
b := &bundle.Bundle{
|
||||
SyncRootPath: t.TempDir(),
|
||||
Config: config.Root{
|
||||
Workspace: config.Workspace{
|
||||
RootPath: "/Workspace/Users/foo@bar.com",
|
||||
|
|
Loading…
Reference in New Issue