Open YeahhhhLi opened 1 year ago
@Pavank1992 Do you have any conclusions or suggestions?
Hi @YeahhhhLi,
Thanks for being patience. We have shared your request with concern team. They will get back to you soon.
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.
Description of the bug:
First let me describe my usage scenario.
I want to customize a filegroup action, the purpose is to save the filegroup data in each scattered directory in the project to a specified directory, custom_file_group.bzl like this:
But due to the existence of the cache, it can only be saved during the first build, and I expect custom_filegroup will never be cached, that is, it is guaranteed to be copied every time.
Later, I tried some methods based on the documentation and previous issues:
common --experimental_allow_tags_propagation
in bazelrc and add tags = ["no-cache"] in cc_binary or filegroupexecution_requirements = { "no-cache": "1", }
in ctx.actions.run_shell Neither of these methods workedWhat's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Directory hierarchy of my test project:
custom_filegroup.bzl
_custom_filegroup = rule( implementation = _custom_filegroup_impl, attrs = { "srcs": attr.label_list(allow_files = True), }, )
def custom_filegroup(name, kwargs): _custom_filegroup( name = name, kwargs)
package( default_visibility = ["//visibility:public"], )
custom_filegroup( name = "nested_files", srcs = glob([ "*.txt", ]), )
First I run
bazel build main
:And then I run
bazel build main
again:Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 6.1.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
No response