Skip to content

Commit

Permalink
Add bzlmod support to cc example
Browse files Browse the repository at this point in the history
split
  • Loading branch information
BalestraPatrick committed Jan 13, 2023
1 parent 392b412 commit 5e077a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
13 changes: 7 additions & 6 deletions examples/cc/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
bazel_dep(name = "rules_apple", repo_name = "build_bazel_rules_apple", version = "2.0.0")
bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "rules_xcodeproj", repo_name = "com_github_buildbuddy_io_rules_xcodeproj", version = "1.5.0")
# TODO: bump to newest rules_swift containing bzlmod fixes and remove local_path_override
# bazel_dep(name = "rules_swift", repo_name = "build_bazel_rules_swift", version = "1.5.0")
local_path_override(
module_name = "rules_swift",
path = "../../../rules_swift"
)
bazel_dep(name = "rules_swift", repo_name = "build_bazel_rules_swift", version = "1.5.1")
bazel_dep(name = "examples_cc_external", version = "0.0.1")

local_path_override(
module_name = "rules_xcodeproj",
path = "../.."
)

local_path_override(
module_name = "examples_cc_external",
path = "external"
)
5 changes: 0 additions & 5 deletions examples/cc/WORKSPACE.bzlmod
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@

local_repository(
name = "examples_cc_external",
path = "external",
)
7 changes: 7 additions & 0 deletions examples/cc/external/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module(
name = "examples_cc_external",
version = "0.0.1",
compatibility_level = 1,
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")

0 comments on commit 5e077a3

Please sign in to comment.