Closed mojkos closed 3 years ago
Hi @mojkos,
There's 2 easy ways to accomplish what you want:
genrule
instead of a dbx_service_task
to produce the hash file. Genrules create output for other rules to consume in their data
attributes (the output would be located in runfiles
). This would result in the binary running once and having the result be cached, rather than with every test invocation.services
attribute of a test rule to depend on your existing dbx_service_task
rule. This would result in your task running as a prerequisite every time your test runs.Hope that helps!
Thanks @dzbarsky.
That's something I was expecting, just wanted to hear some other thoughts on that.