Skip to content

Commit 505bbc8

Browse files
authored
Merge pull request #544 from aherrmann/cdeps-buildozer-command
chore: print buildozer command to fix deprecated cdeps
2 parents aedc120 + d6adde9 commit 505bbc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zig/private/common/zig_build.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ def zig_build_impl(ctx, *, kind):
343343
# buildifier: disable=print
344344
print("""\
345345
The `cdeps` attribute of `zig_build` is deprecated, use `deps` instead.
346-
""")
346+
You can use the following buildozer command to fix it.
347+
buildozer 'move cdeps deps *' {target}
348+
""".format(target = str(ctx.label)))
347349
cdeps = [dep[CcInfo] for dep in ctx.attr.cdeps]
348350

349351
zdeps = []

0 commit comments

Comments
 (0)