Skip to content

Commit c620517

Browse files
authored
Add support for bzlmod (#22)
* Add support for bzlmod This adds support for bazel's new dependency management setup. The changes required for this repo are very minimal. I verified that they also still worked with bazel 6.x and without bzlmod. * Use compatibility_level default
1 parent 7cf7a68 commit c620517

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bazel-*
2+
MODULE.bazel.lock

MODULE.bazel

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module(
2+
name = "nsync",
3+
version = "0",
4+
)
5+
6+
bazel_dep(name = "platforms", version = "0.0.10")

bazel/pkg_path_name.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# (This is used to recover the directory name to pass to cc -I<dir>, when
55
# choosing from among alternative header files for different platforms.)
66
def pkg_path_name():
7-
return "./" + Label(native.repository_name() + "//" + native.package_name() +
7+
return "./" + Label("//" + native.package_name() +
88
":nsync").workspace_root + "/" + native.package_name()

0 commit comments

Comments
 (0)