Skip to content

Commit 1778af4

Browse files
committed
chore: fix lint issues with deprecated google cloud asset dependency
1 parent 3990f6a commit 1778af4

11 files changed

+11
-11
lines changed

enumeration/remote/google/repository/asset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"fmt"
66

77
asset "cloud.google.com/go/asset/apiv1"
8+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
89
"github.com/snyk/driftctl/enumeration/remote/cache"
910
"github.com/snyk/driftctl/enumeration/remote/google/config"
1011
"google.golang.org/api/iterator"
11-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
1212
)
1313

1414
// https://cloud.google.com/asset-inventory/docs/supported-asset-types#supported_resource_types

enumeration/remote/google/repository/asset_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package repository
33
import (
44
"testing"
55

6+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
67
"github.com/snyk/driftctl/enumeration/remote/cache"
78
"github.com/snyk/driftctl/enumeration/remote/google/config"
89
"github.com/snyk/driftctl/test/google"
910
"github.com/stretchr/testify/assert"
1011
"github.com/stretchr/testify/mock"
11-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
1212
)
1313

1414
func Test_assetRepository_searchAllResources_CacheHit(t *testing.T) {

enumeration/remote/google_bigquery_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717

1818
testgoogle "github.com/snyk/driftctl/test/google"
1919

20+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2021
terraform2 "github.com/snyk/driftctl/test/terraform"
2122
"github.com/stretchr/testify/assert"
2223
"github.com/stretchr/testify/mock"
23-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2424
"google.golang.org/grpc/codes"
2525
"google.golang.org/grpc/status"
2626
)

enumeration/remote/google_bigtable_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717

1818
testgoogle "github.com/snyk/driftctl/test/google"
1919

20+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2021
terraform2 "github.com/snyk/driftctl/test/terraform"
2122
"github.com/stretchr/testify/assert"
2223
"github.com/stretchr/testify/mock"
23-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2424
"google.golang.org/grpc/codes"
2525
"google.golang.org/grpc/status"
2626
"google.golang.org/protobuf/types/known/structpb"

enumeration/remote/google_cloudfunctions_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717

1818
testgoogle "github.com/snyk/driftctl/test/google"
1919

20+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2021
terraform2 "github.com/snyk/driftctl/test/terraform"
2122
"github.com/stretchr/testify/assert"
2223
"github.com/stretchr/testify/mock"
23-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2424
"google.golang.org/grpc/codes"
2525
"google.golang.org/grpc/status"
2626
"google.golang.org/protobuf/types/known/structpb"

enumeration/remote/google_cloudrun_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818

1919
testgoogle "github.com/snyk/driftctl/test/google"
2020

21+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2122
terraform2 "github.com/snyk/driftctl/test/terraform"
2223
"github.com/stretchr/testify/assert"
2324
"github.com/stretchr/testify/mock"
24-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2525
"google.golang.org/grpc/codes"
2626
"google.golang.org/grpc/status"
2727
)

enumeration/remote/google_compute_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import (
1616
googleresource "github.com/snyk/driftctl/enumeration/resource/google"
1717
"github.com/snyk/driftctl/mocks"
1818

19+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
1920
"github.com/snyk/driftctl/test/goldenfile"
2021
testgoogle "github.com/snyk/driftctl/test/google"
2122
terraform2 "github.com/snyk/driftctl/test/terraform"
2223
"github.com/stretchr/testify/assert"
2324
"github.com/stretchr/testify/mock"
24-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2525
"google.golang.org/grpc/codes"
2626
"google.golang.org/grpc/status"
2727
"google.golang.org/protobuf/types/known/structpb"

enumeration/remote/google_network_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import (
1818

1919
testgoogle "github.com/snyk/driftctl/test/google"
2020

21+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2122
terraform2 "github.com/snyk/driftctl/test/terraform"
2223
"github.com/stretchr/testify/assert"
2324
"github.com/stretchr/testify/mock"
24-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2525
"google.golang.org/grpc/codes"
2626
"google.golang.org/grpc/status"
2727
)

enumeration/remote/google_sql_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717

1818
testgoogle "github.com/snyk/driftctl/test/google"
1919

20+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2021
terraform2 "github.com/snyk/driftctl/test/terraform"
2122
"github.com/stretchr/testify/assert"
2223
"github.com/stretchr/testify/mock"
23-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2424
"google.golang.org/grpc/codes"
2525
"google.golang.org/grpc/status"
2626
"google.golang.org/protobuf/types/known/structpb"

enumeration/remote/google_storage_scanner_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"github.com/snyk/driftctl/enumeration/resource"
2121
"github.com/snyk/driftctl/mocks"
2222

23+
assetpb "cloud.google.com/go/asset/apiv1/assetpb"
2324
"github.com/snyk/driftctl/test/goldenfile"
2425
testgoogle "github.com/snyk/driftctl/test/google"
2526
terraform2 "github.com/snyk/driftctl/test/terraform"
2627
"github.com/stretchr/testify/assert"
2728
"github.com/stretchr/testify/mock"
28-
assetpb "google.golang.org/genproto/googleapis/cloud/asset/v1"
2929
"google.golang.org/grpc/codes"
3030
"google.golang.org/grpc/status"
3131
)

0 commit comments

Comments
 (0)