Move git package to libs/git (#189)

Fixes #185.
This commit is contained in:
Pieter Noordhuis 2023-01-31 19:19:16 +01:00 committed by GitHub
parent a7bf7ba6c5
commit 241562e2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import (
"time"
"github.com/databricks/bricks/cmd/root"
"github.com/databricks/bricks/git"
"github.com/databricks/bricks/libs/git"
"github.com/databricks/bricks/libs/sync"
"github.com/databricks/bricks/project"
"github.com/spf13/cobra"

View File

@ -22,7 +22,7 @@ func (r *testRepository) Ignore(relPath string) bool {
func TestRepository(t *testing.T) {
// Load this repository as test.
repo, err := NewRepository("..")
repo, err := NewRepository("../..")
tr := testRepository{t, repo}
require.NoError(t, err)
@ -33,5 +33,5 @@ func TestRepository(t *testing.T) {
assert.True(t, tr.Ignore("vendor/"))
// Check that ignores under testdata work.
assert.True(t, tr.Ignore(filepath.Join("git", "testdata", "root.ignoreme")))
assert.True(t, tr.Ignore(filepath.Join("libs", "git", "testdata", "root.ignoreme")))
}

View File

@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/databricks/bricks/git"
"github.com/databricks/bricks/libs/git"
"github.com/databricks/bricks/libs/testfile"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/databricks/bricks/git"
"github.com/databricks/bricks/libs/git"
"github.com/databricks/bricks/libs/sync/repofiles"
"github.com/databricks/databricks-sdk-go"
)

View File

@ -7,7 +7,7 @@ import (
"path/filepath"
"sync"
"github.com/databricks/bricks/git"
"github.com/databricks/bricks/libs/git"
"github.com/databricks/databricks-sdk-go"
"github.com/databricks/databricks-sdk-go/service/commands"
"github.com/databricks/databricks-sdk-go/service/scim"