diff --git a/bundle/libraries/filer.go b/bundle/libraries/filer.go index 01d58eae..4448ed32 100644 --- a/bundle/libraries/filer.go +++ b/bundle/libraries/filer.go @@ -8,6 +8,10 @@ import ( "github.com/databricks/cli/libs/filer" ) +// We upload artifacts to the workspace in a directory named ".internal" to have +// a well defined location for artifacts that have been uploaded by the DABs. +const InternalDirName = ".internal" + // This function returns a filer for uploading artifacts to the configured location. // Supported locations: // 1. WSFS diff --git a/bundle/libraries/filer_workspace.go b/bundle/libraries/filer_workspace.go index 32d48f38..8d54519f 100644 --- a/bundle/libraries/filer_workspace.go +++ b/bundle/libraries/filer_workspace.go @@ -8,10 +8,6 @@ import ( "github.com/databricks/cli/libs/filer" ) -// We upload artifacts to the workspace in a directory named ".internal" to have -// a well defined location for artifacts that have been uploaded by the DABs. -const InternalDirName = ".internal" - func filerForWorkspace(b *bundle.Bundle) (filer.Filer, string, diag.Diagnostics) { uploadPath := path.Join(b.Config.Workspace.ArtifactPath, InternalDirName) f, err := filer.NewWorkspaceFilesClient(b.WorkspaceClient(), uploadPath)