We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9162a3f commit 128f7c6Copy full SHA for 128f7c6
lib/private/directory_path.bzl
@@ -14,7 +14,7 @@ DirectoryPathInfo = provider(
14
15
def _directory_path(ctx):
16
if not ctx.file.directory.is_directory:
17
- fail("directory attribute must be created with Bazel declare_directory (TreeArtifact)")
+ fail("expected directory to be a TreeArtifact (ctx.actions.declare_directory) but got {}".format(ctx.file.directory))
18
return [DirectoryPathInfo(path = ctx.attr.path, directory = ctx.file.directory)]
19
20
directory_path = rule(
0 commit comments