What is the current behavior?
It seems that if output_dir is true, a directory artifact is declared using the rule name as the folder name.
|
if ctx.attr.output_dir: |
|
js_out = ctx.actions.declare_directory("%s" % ctx.attr.name) |
|
output_sources.append(js_out) |
Describe the feature
I was surprised that when I defined output = "dist" with output_dir = True, that the rule would fail with “The following files have no generating action: .../dist". After digging into the code, it seems that name is used for the folder name. Is that intentional?
What is the current behavior?
It seems that if
output_diris true, a directory artifact is declared using the rule name as the folder name.rules_esbuild/esbuild/private/esbuild.bzl
Lines 255 to 257 in cede902
Describe the feature
I was surprised that when I defined
output = "dist"withoutput_dir = True, that the rule would fail with “The following files have no generating action: .../dist". After digging into the code, it seems thatnameis used for the folder name. Is that intentional?