From 8a5865b606d52285b48a7e0573d7c2827e5ae0fb Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Wed, 5 May 2021 16:49:51 -0500 Subject: [PATCH] bazel: use a wildcard instead of listing every stringer file for gazelle This excludes a single non-stringer file, `pkg/sql/sem/tree/parse_string.go`, so re-include it and mark it `# keep`. Release note: None --- BUILD.bazel | 41 +----------------------------------- pkg/sql/sem/tree/BUILD.bazel | 2 +- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 13ff619872d2..80e8626b406e 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -86,46 +86,7 @@ load("@bazel_gazelle//:def.bzl", "gazelle") # gazelle:exclude vendor # gazelle:exclude pkg/security/securitytest/embedded.go # gazelle:exclude pkg/cmd/roachprod/vm/aws/embedded.go -# gazelle:exclude pkg/base/testclusterreplicationmode_string.go -# gazelle:exclude pkg/ccl/sqlproxyccl/errorcode_string.go -# gazelle:exclude pkg/cli/keytype_string.go -# gazelle:exclude pkg/clusterversion/key_string.go -# gazelle:exclude pkg/kv/kvclient/kvcoord/txnstate_string.go -# gazelle:exclude pkg/kv/kvserver/closedts/sidetransport/cantclosereason_string.go -# gazelle:exclude pkg/kv/kvserver/refreshraftreason_string.go -# gazelle:exclude pkg/roachpb/errordetailtype_string.go -# gazelle:exclude pkg/roachpb/method_string.go -# gazelle:exclude pkg/sql/advancecode_string.go -# gazelle:exclude pkg/sql/catalog/catalogkv/descriptorkind_string.go -# gazelle:exclude pkg/sql/catalog/descpb/formatversion_string.go -# gazelle:exclude pkg/sql/catalog/descpb/privilegedescversion_string.go -# gazelle:exclude pkg/sql/colfetcher/fetcherstate_string.go -# gazelle:exclude pkg/sql/execinfra/consumerstatus_string.go -# gazelle:exclude pkg/sql/execinfra/procstate_string.go -# gazelle:exclude pkg/sql/nodestatus_string.go -# gazelle:exclude pkg/sql/opt/optgen/lang/operator_string.go -# gazelle:exclude pkg/sql/opt/optgen/lang/token_string.go -# gazelle:exclude pkg/sql/opt/rule_name_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/clientmessagetype_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/formatcode_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/pgnumericsign_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/preparetype_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/servererrfieldtype_string.go -# gazelle:exclude pkg/sql/pgwire/pgwirebase/servermessagetype_string.go -# gazelle:exclude pkg/sql/privilege/kind_string.go -# gazelle:exclude pkg/sql/roleoption/option_string.go -# gazelle:exclude pkg/sql/schemachange/columnconversionkind_string.go -# gazelle:exclude pkg/sql/schemachanger/scop/type_string.go -# gazelle:exclude pkg/sql/sem/tree/createtypevariety_string.go -# gazelle:exclude pkg/sql/sem/tree/statementreturntype_string.go -# gazelle:exclude pkg/sql/sem/tree/statementtype_string.go -# gazelle:exclude pkg/sql/txnevent_string.go -# gazelle:exclude pkg/sql/txntype_string.go -# gazelle:exclude pkg/util/encoding/type_string.go -# gazelle:exclude pkg/util/timeutil/pgdate/field_string.go -# gazelle:exclude pkg/util/timeutil/pgdate/parsemode_string.go -# gazelle:exclude pkg/workload/schemachange/optype_string.go -# gazelle:exclude pkg/workload/schemachange/txstatus_string.go +# gazelle:exclude pkg/**/*_string.go # gazelle:exclude pkg/geo/wkt/wkt_generated.go # gazelle:exclude pkg/sql/schemachanger/scop/backfill_visitor_generated.go # gazelle:exclude pkg/sql/schemachanger/scop/mutation_visitor_generated.go diff --git a/pkg/sql/sem/tree/BUILD.bazel b/pkg/sql/sem/tree/BUILD.bazel index e78f8e8b10be..e10b789739fe 100644 --- a/pkg/sql/sem/tree/BUILD.bazel +++ b/pkg/sql/sem/tree/BUILD.bazel @@ -61,7 +61,7 @@ go_library( "operators.go", "overload.go", "parse_array.go", - "parse_string.go", + "parse_string.go", # keep "persistence.go", "pgwire_encode.go", "placeholders.go",