Skip to content

Commit

Permalink
Revert "Update to go 1.16" (#8538)
Browse files Browse the repository at this point in the history
This reverts commit f4adc0e.
  • Loading branch information
nisdas committed Mar 2, 2021
1 parent 8a27449 commit a92b20d
Show file tree
Hide file tree
Showing 26 changed files with 34 additions and 36 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ bazel_skylib_workspace()

http_archive(
name = "bazel_gazelle",
sha256 = "222e49f034ca7a1d1231422cdb67066b885819885c356673cb1f72f748a3c9d4",
sha256 = "1f4fc1d91826ec436ae04833430626f4cc02c20bb0a813c0c2f3c4c421307b1d",
strip_prefix = "bazel-gazelle-e368a11b76e92932122d824970dc0ce5feb9c349",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.3/bazel-gazelle-v0.22.3.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.3/bazel-gazelle-v0.22.3.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/archive/e368a11b76e92932122d824970dc0ce5feb9c349.tar.gz",
],
)

Expand Down Expand Up @@ -156,7 +156,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
go_rules_dependencies()

go_register_toolchains(
go_version = "1.16",
go_version = "1.15.7",
nogo = "@//:nogo",
)

Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/core/state/stateutils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["validator_index_map_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//beacon-chain/state:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/bytesutil:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/p2p/peers/peerdata/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["store_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/p2p/peers/scorers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ go_test(
"scorers_test.go",
"service_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//beacon-chain/flags:go_default_library",
"//beacon-chain/p2p/peers:go_default_library",
"//beacon-chain/p2p/peers/peerdata:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion contracts/deposit-contract/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ go_test(
"depositContract_test.go",
"deposit_tree_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/interop:go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/assert:go_default_library",
Expand Down
7 changes: 0 additions & 7 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ def prysm_deps():
sum = "h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw=",
version = "v0.0.0-20170710044230-e206f873d14a",
)

go_repository(
name = "com_github_aws_aws_lambda_go",
importpath = "github.com/aws/aws-lambda-go",
Expand Down Expand Up @@ -1060,10 +1059,6 @@ def prysm_deps():
importpath = "github.com/googleapis/gnostic",
sum = "h1:rVsPeBmXbYv4If/cumu1AzZPwV58q433hvONV1UEZoI=",
version = "v0.1.0",
build_naming_convention = "go_default_library",
build_directives = [
"gazelle:resolve go github.com/googleapis/gnostic/extensions //extensions:go_default_library",
],
)
go_repository(
name = "com_github_gophercloud_gophercloud",
Expand Down Expand Up @@ -2865,7 +2860,6 @@ def prysm_deps():
sum = "h1:njlZPzLwU639dk2kqnCPPv+wNjq7Xb6EfUxe/oX0/NM=",
version = "v0.0.0-20180906055917-c99c65617cd3",
)

go_repository(
name = "com_github_streadway_amqp",
importpath = "github.com/streadway/amqp",
Expand Down Expand Up @@ -3400,7 +3394,6 @@ def prysm_deps():
importpath = "k8s.io/client-go",
sum = "h1:QaJzz92tsN67oorwzmoB0a9r9ZVHuD5ryjbCKP0U22k=",
version = "v0.18.3",
build_naming_convention = "go_default_library",
)
go_repository(
name = "io_k8s_gengo",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/prysmaticlabs/prysm

go 1.16
go 1.15

require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,7 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
Expand Down
2 changes: 1 addition & 1 deletion shared/attestationutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["attestation_utils_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/bytesutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["bytes_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_ethereum_go_ethereum//common/hexutil:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/depositutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["deposit_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//beacon-chain/core/helpers:go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/bls:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/fileutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["fileutil_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/hashutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ go_test(
"hash_test.go",
"merkleRoot_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//proto/testing:go_default_library",
"//shared/bls:go_default_library",
"//shared/bytesutil:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/htrutils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ go_test(
"htrutils_test.go",
"merkleize_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/hashutil:go_default_library",
"//shared/testutil/assert:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/interop/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ go_test(
data = [
"keygen_test_vector.yaml",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//beacon-chain/core/state:go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/assert:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/iputils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["external_ip_test.go"],
embed = [":go_default_library"],
tags = ["requires-network"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
],
Expand Down
6 changes: 4 additions & 2 deletions shared/mathutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["math_helper_test.go"],
embed = [":go_default_library"],
deps = ["//shared/testutil/require:go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/require:go_default_library",
],
)
2 changes: 1 addition & 1 deletion shared/messagehandler/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["messagehandler_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_gogo_protobuf//proto:go_default_library",
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/pagination/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["pagination_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
],
Expand Down
2 changes: 1 addition & 1 deletion shared/runutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["every_test.go"],
embed = [":go_default_library"],
deps = [":go_default_library"],
)
6 changes: 4 additions & 2 deletions shared/sliceutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["slice_test.go"],
embed = [":go_default_library"],
deps = ["@com_github_prysmaticlabs_eth2_types//:go_default_library"],
deps = [
":go_default_library",
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
],
)
2 changes: 1 addition & 1 deletion shared/sszutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["deep_equal_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//proto/beacon/p2p/v1:go_default_library",
"//shared/testutil/assert:go_default_library",
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion shared/testutil/assertions/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["assertions_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion slasher/detection/attestations/types/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ go_test(
"epoch_store_test.go",
"types_test.go",
],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/testutil/assert:go_default_library",
"//shared/testutil/require:go_default_library",
"//slasher/db/testing:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion validator/accounts/wallet/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["wallet_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//shared/params:go_default_library",
"//shared/testutil/require:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion validator/keymanager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["types_test.go"],
embed = [":go_default_library"],
deps = [
":go_default_library",
"//validator/keymanager/derived:go_default_library",
"//validator/keymanager/imported:go_default_library",
"//validator/keymanager/remote:go_default_library",
Expand Down

0 comments on commit a92b20d

Please sign in to comment.