Skip to content

Commit 29de049

Browse files
denikIsaac
andcommitted
Minimal import edits; drop unused diag import
Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 5ca12bc commit 29de049

13 files changed

Lines changed: 25 additions & 20 deletions

‎bundle/config/mutator/python/apply_python_output_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"github.com/databricks/cli/bundle/config"
88
"github.com/databricks/cli/bundle/config/mutator/resourcemutator"
99

10-
"github.com/databricks/cli/libs/diag"
1110
"github.com/databricks/cli/libs/structs/structpath"
1211
"github.com/databricks/cli/libs/structs/structvar"
12+
1313
"github.com/stretchr/testify/assert"
1414
"github.com/stretchr/testify/require"
1515
)

‎bundle/config/mutator/python/python_mutator_test.go‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,21 @@ import (
99
"path/filepath"
1010
"runtime"
1111
"slices"
12+
"strings"
1213
"testing"
1314

1415
"github.com/databricks/cli/libs/diag"
16+
"github.com/databricks/cli/libs/structs/structpath"
1517

1618
"github.com/databricks/cli/bundle/env"
17-
1819
"github.com/stretchr/testify/require"
1920

2021
"github.com/databricks/cli/bundle"
21-
2222
"github.com/databricks/cli/bundle/config"
23-
2423
"github.com/databricks/cli/internal/testutil"
25-
2624
"github.com/databricks/cli/libs/cmdio"
27-
2825
"github.com/databricks/cli/libs/process"
29-
3026
"github.com/stretchr/testify/assert"
31-
32-
"strings"
33-
34-
"github.com/databricks/cli/libs/structs/structpath"
3527
)
3628

3729
func TestPythonMutator_Name_loadResources(t *testing.T) {

‎bundle/config/mutator/resourcemutator/apply_bundle_permissions.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import (
77
"slices"
88
"strings"
99

10+
"github.com/databricks/cli/bundle/permissions"
11+
1012
"github.com/databricks/cli/bundle"
1113
"github.com/databricks/cli/bundle/config/resources"
12-
"github.com/databricks/cli/bundle/permissions"
1314
"github.com/databricks/cli/libs/diag"
1415
"github.com/databricks/cli/libs/logdiag"
1516
"github.com/databricks/cli/libs/structs/structpath"

‎bundle/config/mutator/resourcemutator/expand_pipeline_glob_paths_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import (
77

88
"github.com/databricks/cli/bundle/config/mutator"
99
"github.com/databricks/cli/bundle/config/mutator/resourcemutator"
10+
1011
"github.com/stretchr/testify/assert"
12+
1113
"github.com/databricks/cli/bundle"
1214
"github.com/databricks/cli/bundle/config"
1315
"github.com/databricks/cli/bundle/config/resources"

‎bundle/config/mutator/resourcemutator/resource_mutator.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import (
66
"reflect"
77
"strings"
88

9-
"github.com/databricks/cli/bundle"
109
"github.com/databricks/cli/bundle/config/mutator"
1110
"github.com/databricks/cli/bundle/config/validate"
11+
"github.com/databricks/databricks-sdk-go/service/jobs"
12+
1213
"github.com/databricks/cli/libs/logdiag"
1314
"github.com/databricks/cli/libs/structs/structpath"
14-
"github.com/databricks/databricks-sdk-go/service/jobs"
15+
16+
"github.com/databricks/cli/bundle"
1517
)
1618

1719
// When a new resource is added to configuration, we apply bundle

‎bundle/config/mutator/resourcemutator/validate_target_mode.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import (
55
"fmt"
66
"strings"
77

8+
"github.com/databricks/cli/libs/iamutil"
9+
810
"github.com/databricks/cli/bundle"
911
"github.com/databricks/cli/bundle/config"
1012
"github.com/databricks/cli/libs/diag"
11-
"github.com/databricks/cli/libs/iamutil"
1213
)
1314

1415
type validateTargetMode struct{}

‎bundle/config/mutator/translate_paths.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ import (
1111
"path/filepath"
1212
"strings"
1313

14+
"github.com/databricks/cli/bundle/config/mutator/paths"
15+
"github.com/databricks/cli/bundle/libraries"
16+
1417
"github.com/databricks/cli/bundle"
1518
"github.com/databricks/cli/bundle/config"
16-
"github.com/databricks/cli/bundle/config/mutator/paths"
1719
"github.com/databricks/cli/bundle/config/resources"
18-
"github.com/databricks/cli/bundle/libraries"
1920
"github.com/databricks/cli/libs/diag"
2021
"github.com/databricks/cli/libs/notebook"
2122
"github.com/databricks/cli/libs/structs/structpath"

‎bundle/config/mutator/translate_paths_jobs.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"slices"
88

99
"github.com/databricks/cli/bundle/config/mutator/paths"
10+
1011
"github.com/databricks/cli/libs/diag"
1112
"github.com/databricks/cli/libs/logdiag"
1213
"github.com/databricks/cli/libs/structs/structpath"

‎bundle/config/mutator/translate_paths_pipelines.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"path/filepath"
77

88
"github.com/databricks/cli/bundle/config/mutator/paths"
9+
910
"github.com/databricks/cli/libs/diag"
1011
"github.com/databricks/cli/libs/logdiag"
1112
"github.com/databricks/cli/libs/structs/structpath"

‎bundle/config/resources_types_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import (
99
"strings"
1010
"testing"
1111

12+
"github.com/stretchr/testify/assert"
13+
"github.com/stretchr/testify/require"
14+
1215
"github.com/databricks/cli/bundle/config/resources"
1316
"github.com/databricks/cli/libs/structs/structpath"
1417
"github.com/databricks/cli/libs/structs/structtag"
1518
"github.com/databricks/cli/libs/structs/structvar"
1619
"github.com/databricks/cli/libs/structs/structwalk"
17-
"github.com/stretchr/testify/assert"
18-
"github.com/stretchr/testify/require"
1920
)
2021

2122
func TestResourcesTypesMap(t *testing.T) {

0 commit comments

Comments
 (0)