Skip to content

Commit

Permalink
Update toolchains_protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 20, 2024
1 parent d1f78a7 commit 6239ea9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
workspace(name = "io_bazel_rules_go")

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@io_bazel_rules_go//go:deps.bzl", "go_download_sdk", "go_register_nogo", "go_register_toolchains", "go_rules_dependencies")

Expand Down Expand Up @@ -78,11 +77,11 @@ load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")

rules_proto_toolchains()

# TODO: Replace with an http_archive after the release of toolchains_protoc 0.3.4 or higher.
git_repository(
http_archive(
name = "toolchains_protoc",
commit = "7da180adb5fd465dedefea3ed3c1392b402e8e72",
remote = "https://github.com/aspect-build/toolchains_protoc.git",
sha256 = "f7302cce01d00c52f7ed8a033a3f133bd2c95f9608f3e4ad7d69f9e1ac2b0cc0",
strip_prefix = "toolchains_protoc-0.3.4",
url = "https://github.com/aspect-build/toolchains_protoc/releases/download/v0.3.4/toolchains_protoc-v0.3.4.tar.gz",
)

load("@toolchains_protoc//protoc:toolchain.bzl", "protoc_toolchains")
Expand Down
2 changes: 1 addition & 1 deletion tests/core/cross/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
var testArgs = bazel_testing.Args{
ModuleFileSuffix: `
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(name = "toolchains_protoc", version = "0.2.4")
bazel_dep(name = "toolchains_protoc", version = "0.3.4")
`,
WorkspacePrefix: `
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Expand Down
2 changes: 1 addition & 1 deletion tests/core/transition/hermeticity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ message Foo {
ModuleFileSuffix: `
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_proto", version = "6.0.0")
bazel_dep(name = "toolchains_protoc", version = "0.2.4")
bazel_dep(name = "toolchains_protoc", version = "0.3.4")
`,
WorkspacePrefix: `
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Expand Down

0 comments on commit 6239ea9

Please sign in to comment.