From 6659e573c4c25cffd796802236b8434a60de2f61 Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Tue, 29 Oct 2024 11:50:05 +0100 Subject: [PATCH] changed name --- bundle/config/validate/folder_permissions.go | 2 +- bundle/paths/paths.go | 2 +- bundle/permissions/workspace_root.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/config/validate/folder_permissions.go b/bundle/config/validate/folder_permissions.go index 56d36cfed..88502ec8f 100644 --- a/bundle/config/validate/folder_permissions.go +++ b/bundle/config/validate/folder_permissions.go @@ -23,7 +23,7 @@ func (f *folderPermissions) Apply(ctx context.Context, b bundle.ReadOnlyBundle) return nil } - bundlePaths := paths.CollectUniquePaths(b.Config().Workspace) + bundlePaths := paths.CollectUniqueWorkspacePathPrefixes(b.Config().Workspace) var diags diag.Diagnostics g, ctx := errgroup.WithContext(ctx) diff --git a/bundle/paths/paths.go b/bundle/paths/paths.go index c092543e6..50b75a6cd 100644 --- a/bundle/paths/paths.go +++ b/bundle/paths/paths.go @@ -7,7 +7,7 @@ import ( "github.com/databricks/cli/bundle/libraries" ) -func CollectUniquePaths(workspace config.Workspace) []string { +func CollectUniqueWorkspacePathPrefixes(workspace config.Workspace) []string { rootPath := workspace.RootPath paths := []string{} if !libraries.IsVolumesPath(rootPath) && !libraries.IsWorkspaceSharedPath(rootPath) { diff --git a/bundle/permissions/workspace_root.go b/bundle/permissions/workspace_root.go index d52c658cd..4ab8198bb 100644 --- a/bundle/permissions/workspace_root.go +++ b/bundle/permissions/workspace_root.go @@ -54,7 +54,7 @@ func giveAccessForWorkspaceRoot(ctx context.Context, b *bundle.Bundle) error { } w := b.WorkspaceClient().Workspace - bundlePaths := paths.CollectUniquePaths(b.Config.Workspace) + bundlePaths := paths.CollectUniqueWorkspacePathPrefixes(b.Config.Workspace) g, ctx := errgroup.WithContext(ctx) for _, p := range bundlePaths {