Skip to content

Commit

Permalink
Minor fixes to align project with BCR
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderGondek committed Oct 21, 2022
1 parent 1d66a62 commit b94b64e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
24 changes: 10 additions & 14 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
module(
name = "rules_cc_hdrs_map",
version = "0.0.1",
version = "0.0.2",
)

# This project does not rely on any dependencies to function properly.
# Entries below are solely for the purposes of development.
bazel_dep(
name = "bazel_skylib",
dev_dependency = True,
version = "1.2.1",
version = "1.3.0",
)
bazel_dep(
name = "stardoc",
dev_dependency = True,
version = "0.5.2",
version = "0.5.3",
)

# Pathetic
# 'The MODULE.bazel file of rules_cc_hdrs_map@_ declares overrides' if used by other module
#
# TODO: Stardoc fails when running with bzlmod
# archive_override(
# integrity = "sha256-BftXu0rWijYEcEIKO29TF+T3IoOavFsX7E747UZaqkc=",
# module_name = "stardoc",
# patches = [
# "//:patches/000-modularize-stardoc.patch",
# ],
# urls = ["https://github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz"],
# integrity = "sha256-BftXu0rWijYEcEIKO29TF+T3IoOavFsX7E747UZaqkc=",
# module_name = "stardoc",
# patches = [
# "//:patches/000-modularize-stardoc.patch",
# ],
# urls = ["https://github.com/bazelbuild/stardoc/releases/download/0.5.2/stardoc-0.5.2.tar.gz"],
# )
#
# stardoc_ext = use_extension("@stardoc//:setup.bzl", "stardoc_ext")
#
# use_repo(stardoc_ext, "rules_java")
2 changes: 1 addition & 1 deletion examples/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_cc_hdrs_map_examples",
version = "0.0.1",
version = "0.0.2",
)

bazel_dep(name = "rules_cc", version = "0.0.0")
Expand Down
4 changes: 2 additions & 2 deletions patches/000-modularize-stardoc.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
diff --git MODULE.bazel MODULE.bazel
new file mode 100644
index 0000000..b68017a
index 0000000..34e651e
--- /dev/null
+++ MODULE.bazel
@@ -0,0 +1,8 @@
+module(
+ name = "stardoc",
+ compatibility_level = 1,
+ version = "0.5.2",
+ version = "0.5.3",
+)
+
+bazel_dep(name = "bazel_skylib", version = "1.2.1")
Expand Down

0 comments on commit b94b64e

Please sign in to comment.