-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty input directories are omitted #59
Comments
This is a temporary hack until the [buildbarn bug](buildbarn/bb-remote-execution#59) is fixed.
Any comments on this issue? Is it considered a bug of the buildbarn implementation or should I file a PR to the proto rules repo? |
Can you check whether this still holds with the latest copy of Buildbarn? It may be that this was related to #46. Be sure to also explore the input root in bb-browser. If there is no directory there, then there is little we can do; Bazel doesn’t provide it to us then. |
Nope, still the same problem. |
Have you inspected bb-browser to see what the input root looks like? If the input root doesn't show these directories, then there is no way you can expect Buildbarn to create them for you. |
Yes, it doesn't have the empty directories. Only directories with files in them. |
Then in that case Buildbarn is working as expected. It instantiates the file system as provided by Bazel. Be sure to file a new issue against Bazel itself to report this issue! |
Rules proto grpc project runs
cp -r
on multiple input directories. Each directory is created by an aspect for aproto_library
target. During local execution Bazel creates output directories defined bydeclare_directory()
for aspects and then calls the action to populate them. If the action doesn't produce any files empty directories stay as they were. When the same build is executed remotely with Buildbarn empty directories are not present in the inputs (while non-empty ones are there). I assume this is a bug in Buildbarn -- it doesn't download empty directory trees. #47 makes me think that if there's no files the directory tree will not be built. Sincedeclare_directory()
was called I would expect it to be present in dependent actions no matter it's contents.The text was updated successfully, but these errors were encountered: