Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gazelle-overrides for argo, grpcgateway #1867

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions internal/bzlmod/default_gazelle_overrides.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ DEFAULT_BUILD_FILE_GENERATION_BY_PATH = {
}

DEFAULT_DIRECTIVES_BY_PATH = {
"github.com/argoproj/argo-workflows/v3": [
"gazelle:proto disable",
],
"github.com/argoproj/argo-events": [
"gazelle:proto disable",
"gazelle:go_naming_convention import_alias",
],
"github.com/census-instrumentation/opencensus-proto": [
"gazelle:proto disable",
],
Expand All @@ -31,6 +38,10 @@ DEFAULT_DIRECTIVES_BY_PATH = {
"github.com/cockroachdb/errors": [
"gazelle:proto disable",
],
"github.com/colinmarc/hdfs/v2": [
"gazelle:go_naming_convention import_alias",
"gazelle:proto disable",
],
"github.com/containerd/containerd": [
"gazelle:proto disable",
],
Expand Down Expand Up @@ -65,6 +76,11 @@ DEFAULT_DIRECTIVES_BY_PATH = {
"github.com/googleapis/gnostic": [
"gazelle:proto disable",
],
"github.com/grpc-ecosystem/grpc-gateway": [
"gazelle:resolve go github.com/grpc-ecosystem/grpc-gateway/internal //internal:go_default_library",
"gazelle:go_naming_convention import_alias",
"gazelle:proto disable",
],
"github.com/pseudomuto/protoc-gen-doc": [
# The build file in github.com/mwitkow/go-proto-validators has both go_proto and gogo_proto targets, but the checked
# in go files are generated by gogo proto. Resolving to the gogo proto target preserves the behavior of Go modules.
Expand Down