Update to go 1.16 (#8521)

* Update to go 1.16

* Also update go.mod

* rm go.sum then run go mod tidy

* go mod tidy with go 1.16

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
Preston Van Loon 2021-02-25 15:38:19 -06:00 committed by GitHub
parent 658cbf5631
commit f4adc0ea86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 36 additions and 34 deletions

View File

@ -60,10 +60,10 @@ bazel_skylib_workspace()
http_archive(
name = "bazel_gazelle",
sha256 = "1f4fc1d91826ec436ae04833430626f4cc02c20bb0a813c0c2f3c4c421307b1d",
strip_prefix = "bazel-gazelle-e368a11b76e92932122d824970dc0ce5feb9c349",
sha256 = "222e49f034ca7a1d1231422cdb67066b885819885c356673cb1f72f748a3c9d4",
urls = [
"https://github.com/bazelbuild/bazel-gazelle/archive/e368a11b76e92932122d824970dc0ce5feb9c349.tar.gz",
"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",
],
)
@ -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.15.7",
go_version = "1.16",
nogo = "@//:nogo",
)

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -168,6 +168,7 @@ 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",
@ -1059,6 +1060,10 @@ 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",
@ -2860,6 +2865,7 @@ 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",
@ -3394,6 +3400,7 @@ 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",

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/prysmaticlabs/prysm
go 1.15
go 1.16
require (
contrib.go.opencensus.io/exporter/jaeger v0.2.1

1
go.sum
View File

@ -1657,7 +1657,6 @@ 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=

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",
],

View File

@ -12,8 +12,6 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["math_helper_test.go"],
deps = [
":go_default_library",
"//shared/testutil/require:go_default_library",
],
embed = [":go_default_library"],
deps = ["//shared/testutil/require:go_default_library"],
)

View File

@ -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",

View File

@ -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",
],

View File

@ -12,5 +12,5 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["every_test.go"],
deps = [":go_default_library"],
embed = [":go_default_library"],
)

View File

@ -16,8 +16,6 @@ go_test(
name = "go_default_test",
size = "small",
srcs = ["slice_test.go"],
deps = [
":go_default_library",
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
],
embed = [":go_default_library"],
deps = ["@com_github_prysmaticlabs_eth2_types//:go_default_library"],
)

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",