diff --git a/.golangci.yaml b/.golangci.yaml index 7476544..cd65e84 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -85,6 +85,7 @@ linters-settings: sections: - standard - default + - prefix(cloud-proxy) issues: fix: true exclude-dirs: diff --git a/internal/e2etest/roundtripper.go b/internal/e2etest/roundtripper.go index bcddab2..40d2736 100644 --- a/internal/e2etest/roundtripper.go +++ b/internal/e2etest/roundtripper.go @@ -7,8 +7,9 @@ import ( "log" "net/http" - cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" "github.com/google/uuid" + + cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" ) type HTTPOverGrpcRoundTripper struct { diff --git a/internal/proxy/client.go b/internal/proxy/client.go index 28e0d6c..e62c361 100644 --- a/internal/proxy/client.go +++ b/internal/proxy/client.go @@ -12,10 +12,11 @@ import ( "sync/atomic" "time" - cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" "github.com/samber/lo" "github.com/sirupsen/logrus" "google.golang.org/grpc" + + cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" ) const ( diff --git a/internal/proxy/client_test.go b/internal/proxy/client_test.go index 14046d9..ddcaabe 100644 --- a/internal/proxy/client_test.go +++ b/internal/proxy/client_test.go @@ -13,12 +13,13 @@ import ( "testing" "time" - mock_proxy "cloud-proxy/internal/proxy/mock" - cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" "github.com/golang/mock/gomock" "github.com/samber/lo" "github.com/sirupsen/logrus" "github.com/stretchr/testify/require" + + mock_proxy "cloud-proxy/internal/proxy/mock" + cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha" ) type mockReadCloserErr struct{}