Skip to content

Commit

Permalink
Fixes incorrect usages of gazelle:ignore (#8562)
Browse files Browse the repository at this point in the history
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
farazdagi and prylabs-bulldozer[bot] authored Mar 8, 2021
1 parent 4a98300 commit 294b031
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
15 changes: 6 additions & 9 deletions beacon-chain/cache/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
load("@prysm//tools/go:def.bzl", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "go_test")

# gazelle:ignore committee_disabled.go
# gazelle:ignore proposer_indices_disabled.go
# gazelle:exclude committee_disabled.go
# gazelle:exclude proposer_indices_disabled.go
go_library(
name = "go_default_library",
srcs = [
Expand All @@ -11,13 +11,13 @@ go_library(
"committees.go",
"common.go",
"doc.go",
"proposer_indices_type.go",
"skip_slot_cache.go",
"subnet_ids.go",
"proposer_indices_type.go",
] + select({
"//fuzz:fuzzing_enabled": [
"committee_disabled.go",
"proposer_indices_disabled.go"
"proposer_indices_disabled.go",
],
"//conditions:default": [
"committee.go",
Expand All @@ -32,8 +32,6 @@ go_library(
],
deps = [
"//beacon-chain/state:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/featureconfig:go_default_library",
"//shared/hashutil:go_default_library",
"//shared/params:go_default_library",
"//shared/sliceutil:go_default_library",
Expand All @@ -53,20 +51,19 @@ go_test(
size = "small",
srcs = [
"attestation_data_test.go",
"cache_test.go",
"checkpoint_state_test.go",
"committee_fuzz_test.go",
"committee_test.go",
"cache_test.go",
"proposer_indices_test.go",
"skip_slot_cache_test.go",
"subnet_ids_test.go",
"proposer_indices_test.go"
],
embed = [":go_default_library"],
deps = [
"//beacon-chain/state:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/bytesutil:go_default_library",
"//shared/featureconfig:go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
Expand Down
3 changes: 2 additions & 1 deletion beacon-chain/db/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ config_setting(
values = {"define": "kafka_enabled=false"},
)

# gazelle:exclude db.go db_kafka_wrapped.go
# gazelle:exclude db.go
# gazelle:exclude db_kafka_wrapped.go
go_library(
name = "go_default_library",
srcs = [
Expand Down
8 changes: 4 additions & 4 deletions endtoend/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@io_bazel_rules_go//go:def.bzl", "go_test")

# gazelle:ignore geth_deps.go
# gazelle:exclude geth_deps.go

go_test(
name = "go_default_test",
Expand All @@ -15,8 +15,8 @@ go_test(
data = [
"//cmd/beacon-chain",
"//cmd/slasher",
"//tools/bootnode",
"//cmd/validator",
"//tools/bootnode",
"@com_github_ethereum_go_ethereum//cmd/geth",
],
shard_count = 2,
Expand All @@ -36,11 +36,11 @@ go_test(
"//shared/params:go_default_library",
"//shared/slotutil:go_default_library",
"//shared/testutil:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_gogo_protobuf//types:go_default_library",
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
],
)
2 changes: 1 addition & 1 deletion fuzz/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ load("@com_github_prysmaticlabs_ethereumapis//tools:ssz.bzl", "SSZ_DEPS", "ssz_g
load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_test")

# gazelle:ignore generated.ssz.go
# gazelle:ignore

config_setting(
name = "fuzzing_enabled",
Expand Down
2 changes: 1 addition & 1 deletion proto/cluster/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ load("@prysm//tools/go:def.bzl", "go_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

# gazelle:ignore *.pb.go
# gazelle:ignore

proto_library(
name = "prysm_internal_cluster_proto",
Expand Down
2 changes: 1 addition & 1 deletion shared/debug/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config_setting(
values = {"define": "USE_CGO_SYMBOLIZER=true"},
)

# gazelle:ignore cgo_symbolizer.go
# gazelle:ignore
go_library(
name = "go_default_library",
srcs = [
Expand Down

0 comments on commit 294b031

Please sign in to comment.