Skip to content

Commit

Permalink
[golang] Update golang dependencies.
Browse files Browse the repository at this point in the history
Update build dependencies:

1. rules_go: 0.41.0
2. gazelle: 0.35.0
3. golang: 19.1

Update golang packages:

1. golang.org/x/crypto: v0.23.0
2. golang.org/x/tools: v0.10.0

Signed-off-by: Miguel Osorio <[email protected]>
  • Loading branch information
moidx committed Feb 15, 2025
1 parent 2e511e5 commit c40e7a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lowRISC/opentitan-provisioning

go 1.18
go 1.19

replace github.com/lowRISC/opentitan-provisioning => ./

Expand All @@ -12,10 +12,10 @@ require (
go.etcd.io/etcd v3.3.27+incompatible
go.etcd.io/etcd/api/v3 v3.5.1
go.etcd.io/etcd/client/v3 v3.5.1
golang.org/x/crypto v0.0.0-20220307211146-efcb8507fb70
golang.org/x/crypto v0.23.0
golang.org/x/sync v0.1.0
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
golang.org/x/tools v0.1.10
golang.org/x/tools v0.10.0
google.golang.org/api v0.32.0
google.golang.org/grpc v1.41.0

Expand Down
18 changes: 5 additions & 13 deletions third_party/go/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def go_deps():
go_rules_dependencies()
go_register_toolchains(
nogo = "@//:vet",
version = "1.18",
version = "1.19",
)
gazelle_dependencies()

Expand All @@ -27,15 +27,13 @@ def go_packages_():
sum = "h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=",
version = "v0.3.0",
)

go_repository(
name = "com_github_coreos_go_systemd_v22",
build_file_proto_mode = "disable_global",
importpath = "github.com/coreos/go-systemd/v22",
sum = "h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI=",
version = "v22.3.2",
)

go_repository(
name = "com_github_golang_protobuf",
build_file_proto_mode = "disable_global",
Expand Down Expand Up @@ -85,7 +83,6 @@ def go_packages_():
sum = "h1:XIQcHCFSG53bJETYeRJtIxdLv2EWRGxcfzR8lSnTH4E=",
version = "v3.5.1",
)

go_repository(
name = "io_etcd_go_etcd_client_v3",
build_file_proto_mode = "disable_global",
Expand All @@ -107,21 +104,19 @@ def go_packages_():
sum = "h1:wtujag7C+4D6KMoulW9YauvK2lgdvCMS260jsqqBXr0=",
version = "v0.0.0-20210602131652-f16073e35f0c",
)

go_repository(
name = "org_golang_google_grpc",
build_file_proto_mode = "disable_global",
importpath = "google.golang.org/grpc",
sum = "h1:f+PlOh7QV4iIJkPrx5NQ7qaNGFQ3OTse67yaDHfju4E=",
version = "v1.41.0",
)

go_repository(
name = "org_golang_x_crypto",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/crypto",
sum = "h1:syTAU9FwmvzEoIYMqcPHOcVm4H3U5u90WsvuYgwpETU=",
version = "v0.0.0-20220307211146-efcb8507fb70",
sum = "h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=",
version = "v0.23.0",
)
go_repository(
name = "org_golang_x_sync",
Expand All @@ -137,13 +132,12 @@ def go_packages_():
sum = "h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0=",
version = "v0.0.0-20211019181941-9d821ace8654",
)

go_repository(
name = "org_golang_x_tools",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/tools",
sum = "h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20=",
version = "v0.1.10",
sum = "h1:tvDr/iQoUqNdohiYm0LmmKcBk+q86lb9EprIUFhHHGg=",
version = "v0.10.0",
)
go_repository(
name = "org_uber_go_atomic",
Expand All @@ -152,15 +146,13 @@ def go_packages_():
sum = "h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw=",
version = "v1.7.0",
)

go_repository(
name = "org_uber_go_multierr",
build_file_proto_mode = "disable_global",
importpath = "go.uber.org/multierr",
sum = "h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=",
version = "v1.6.0",
)

go_repository(
name = "org_uber_go_zap",
build_file_proto_mode = "disable_global",
Expand Down
8 changes: 4 additions & 4 deletions third_party/go/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

load("@//rules:repo.bzl", "http_archive_or_local")

_RULES_GO_VERSION = "0.34.0"
_GAZELLE_VERSION = "0.24.0"
_RULES_GO_VERSION = "0.41.0"
_GAZELLE_VERSION = "0.35.0"

def go_repos(rules_go = None, gazelle = None):
# Go toolchain
http_archive_or_local(
name = "io_bazel_rules_go",
local = rules_go,
sha256 = "16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366",
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v{}/rules_go-v{}.zip".format(_RULES_GO_VERSION, _RULES_GO_VERSION),
"https://github.com/bazelbuild/rules_go/releases/download/v{}/rules_go-v{}.zip".format(_RULES_GO_VERSION, _RULES_GO_VERSION),
Expand All @@ -23,6 +23,6 @@ def go_repos(rules_go = None, gazelle = None):
http_archive_or_local(
name = "bazel_gazelle",
local = gazelle,
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
sha256 = "32938bda16e6700063035479063d9d24c60eda8d79fd4739563f50d331cb3209",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/v{}/bazel-gazelle-v{}.tar.gz".format(_GAZELLE_VERSION, _GAZELLE_VERSION),
)

0 comments on commit c40e7a4

Please sign in to comment.