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:
Pieter Noordhuis 2024-02-07 17:33:18 +01:00 committed by GitHub
parent f6cdc75825
commit 8e58e04e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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

View File

@ -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"
) )

View File

@ -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.
{ {

View File

@ -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"