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) {
|
if !config.IsExplicitlyDisabled(t.SourceLinkedDeployment) {
|
||||||
root := b.SyncRootPath
|
isInWorkspace := strings.HasPrefix(b.SyncRootPath, "/Workspace/")
|
||||||
isInWorkspace := strings.HasPrefix(root, "/Workspace/")
|
|
||||||
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
if isInWorkspace && dbr.RunsOnRuntime(ctx) {
|
||||||
enabled := true
|
enabled := true
|
||||||
t.SourceLinkedDeployment = &enabled
|
t.SourceLinkedDeployment = &enabled
|
||||||
|
|
|
@ -18,7 +18,6 @@ import (
|
||||||
|
|
||||||
func TestFolderPermissionsInheritedWhenRootPathDoesNotExist(t *testing.T) {
|
func TestFolderPermissionsInheritedWhenRootPathDoesNotExist(t *testing.T) {
|
||||||
b := &bundle.Bundle{
|
b := &bundle.Bundle{
|
||||||
SyncRootPath: t.TempDir(),
|
|
||||||
Config: config.Root{
|
Config: config.Root{
|
||||||
Workspace: config.Workspace{
|
Workspace: config.Workspace{
|
||||||
RootPath: "/Workspace/Users/foo@bar.com",
|
RootPath: "/Workspace/Users/foo@bar.com",
|
||||||
|
|
Loading…
Reference in New Issue