Skip to content

Commit

Permalink
chore(bazel): add MODULE.bazel files for bzlmod
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 committed Mar 23, 2024
1 parent d77ff30 commit ce22eb1
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
41 changes: 41 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module(
name = "proto-converter",
repo_name = "proto_converter",
)

bazel_dep(
name = "abseil-cpp",
version = "20210324.2",
repo_name = "com_google_absl",
)
bazel_dep(
name = "bazel_skylib",
version = "1.3.0",
)
bazel_dep(
name = "googletest",
version = "1.13.0",
repo_name = "com_google_googletest",
)
bazel_dep(
name = "platforms",
version = "0.0.9",
)
bazel_dep(
name = "protobuf",
version = "21.7",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "rules_cc",
version = "0.0.9",
)
bazel_dep(
name = "rules_pkg",
version = "0.7.0",
)
bazel_dep(
name = "rules_proto",
version = "5.3.0-21.7",
)
# -- bazel_dep definitions -- #
3 changes: 1 addition & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ googletest_deps()
http_archive(
name = "com_google_protobuf",
sha256 = "aa61db6ff113a1c76eac9408144c6e996c5e2d6b2410818fd7f1b0d222a50bf8",
strip_prefix = "protobuf-315ffb5be89460f2857387d20aefc59b76b8bdc3", # 5.31.2023
strip_prefix = "protobuf-315ffb5be89460f2857387d20aefc59b76b8bdc3", # 5.31.2023
urls = ["https://github.com/protocolbuffers/protobuf/archive/315ffb5be89460f2857387d20aefc59b76b8bdc3.tar.gz"],
)

Expand All @@ -35,4 +35,3 @@ http_archive(
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

Empty file added WORKSPACE.bzlmod
Empty file.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
load("//build_defs:cpp_opts.bzl", "COPTS", "LINK_OPTS")

package(
default_visibility = ["//:__subpackages__"],
default_visibility = ["//:__subpackages__"],
)

cc_library(
Expand Down

0 comments on commit ce22eb1

Please sign in to comment.