Does bazel have an equivalent to make's `PHONY` functionality? I'd like to be able to create a dependency that is always rebuilt regardless of the cache status. The reason I'd like to do this is the target is a genrule that needs to be rebuilt only when some hard-to-detect environment conditions change. I can't put these dependency conditions into the bazel target, and the target is fast to build, so the easiest thing to do is just tell Bazel that the target is always out of date. Is this possible?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/4471b6db-e9f4-4ffb-872b-c891143097c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Out of curiosity, what environmental conditions does your genrule depend on?
On Fri, Dec 9, 2016 at 1:12 PM, Chris Brown <chris...@zoox.com> wrote:
Does bazel have an equivalent to make's `PHONY` functionality? I'd like to be able to create a dependency that is always rebuilt regardless of the cache status. The reason I'd like to do this is the target is a genrule that needs to be rebuilt only when some hard-to-detect environment conditions change. I can't put these dependency conditions into the bazel target, and the target is fast to build, so the easiest thing to do is just tell Bazel that the target is always out of date. Is this possible?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/94c624a1-b303-4068-ad51-dfc38eeb3b34%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/94c624a1-b303-4068-ad51-dfc38eeb3b34%40googlegroups.com.
Have you considered having files like ".git/HEAD" be srcs for your genrule?