how to export updates in runfiles from a target ? #18486
Replies: 1 comment
-
Are you referring to https://github.com/bazelbuild/rules_nodejs or https://github.com/aspect-build/rules_js? It would be helpful if you could provide the specific version of the rules you use.
So I think both In general, I would advise you to try and read the
|
Beta Was this translation helpful? Give feedback.
-
we have a bazel setup as follows:
the idea is that before piping the
web:srcs
to webpack, we want to runlingui
(which is an i18n framework) to generate the message file for pseudo locale (we don't want to check pseudo locale to source..)but as
lingui
here only updates the runfiles within its run, so the change it made never propagates to other targets, and the rule itself does not produce any outputs either....I have tried to use a
genrule
to copy and export files fromlingui
, but could not find where I can retrieve the path to the runfiles...(here we are using the rules_js, but I'm posting here as rules_js seems to be deprecated and also this seems to be a general question regarding how to include generated artifacts that exists in runfiles... or how to avoid having it in runfiles at the beginning...)
Beta Was this translation helpful? Give feedback.
All reactions