mirror of https://github.com/databricks/cli.git
move .internal var
This commit is contained in:
parent
42bf6aeecf
commit
5f2db1e2bd
|
@ -8,6 +8,10 @@ import (
|
||||||
"github.com/databricks/cli/libs/filer"
|
"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.
|
// This function returns a filer for uploading artifacts to the configured location.
|
||||||
// Supported locations:
|
// Supported locations:
|
||||||
// 1. WSFS
|
// 1. WSFS
|
||||||
|
|
|
@ -8,10 +8,6 @@ import (
|
||||||
"github.com/databricks/cli/libs/filer"
|
"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) {
|
func filerForWorkspace(b *bundle.Bundle) (filer.Filer, string, diag.Diagnostics) {
|
||||||
uploadPath := path.Join(b.Config.Workspace.ArtifactPath, InternalDirName)
|
uploadPath := path.Join(b.Config.Workspace.ArtifactPath, InternalDirName)
|
||||||
f, err := filer.NewWorkspaceFilesClient(b.WorkspaceClient(), uploadPath)
|
f, err := filer.NewWorkspaceFilesClient(b.WorkspaceClient(), uploadPath)
|
||||||
|
|
Loading…
Reference in New Issue