mirror of https://github.com/databricks/cli.git
Move folders package into libs (#1184)
## Changes This is the last top-level package that doesn't need to be top-level.
This commit is contained in:
parent
f6cdc75825
commit
8e58e04e8f
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/databricks/cli/bundle/config"
|
"github.com/databricks/cli/bundle/config"
|
||||||
"github.com/databricks/cli/bundle/env"
|
"github.com/databricks/cli/bundle/env"
|
||||||
"github.com/databricks/cli/bundle/metadata"
|
"github.com/databricks/cli/bundle/metadata"
|
||||||
"github.com/databricks/cli/folders"
|
"github.com/databricks/cli/libs/folders"
|
||||||
"github.com/databricks/cli/libs/git"
|
"github.com/databricks/cli/libs/git"
|
||||||
"github.com/databricks/cli/libs/locker"
|
"github.com/databricks/cli/libs/locker"
|
||||||
"github.com/databricks/cli/libs/log"
|
"github.com/databricks/cli/libs/log"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
"github.com/databricks/cli/bundle/config"
|
"github.com/databricks/cli/bundle/config"
|
||||||
"github.com/databricks/cli/bundle/env"
|
"github.com/databricks/cli/bundle/env"
|
||||||
"github.com/databricks/cli/folders"
|
"github.com/databricks/cli/libs/folders"
|
||||||
)
|
)
|
||||||
|
|
||||||
// getRootEnv returns the value of the bundle root environment variable
|
// getRootEnv returns the value of the bundle root environment variable
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/databricks/cli/folders"
|
|
||||||
"github.com/databricks/cli/libs/env"
|
"github.com/databricks/cli/libs/env"
|
||||||
|
"github.com/databricks/cli/libs/folders"
|
||||||
"github.com/databricks/cli/libs/log"
|
"github.com/databricks/cli/libs/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ func TestFindDirWithLeaf(t *testing.T) {
|
||||||
wd, err := os.Getwd()
|
wd, err := os.Getwd()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
root := filepath.Join(wd, "..")
|
root := filepath.Join(wd, "..", "..")
|
||||||
|
|
||||||
// Find from working directory should work.
|
// Find from working directory should work.
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/databricks/cli/folders"
|
"github.com/databricks/cli/libs/folders"
|
||||||
)
|
)
|
||||||
|
|
||||||
const gitIgnoreFileName = ".gitignore"
|
const gitIgnoreFileName = ".gitignore"
|
||||||
|
|
Loading…
Reference in New Issue