-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: filter runfiles with whitespace in their paths #73
Conversation
Could you please check and fix buildifier errors? https://github.com/bazel-contrib/rules_ruby/actions/runs/7737573441/job/21109769894?pr=73 |
Thinking out loud, is it really better to silently filter out runfiles with spaces than to fail? Wouldn't it still fail during execution if we drop part of the runfiles and the user would be even more confused as to why it's not there? |
That's a good point, I could see that being confusing. Maybe the filtering could be configured some how? My example is https://github.com/jekyll/jekyll-redirect-from/tree/master/spec/fixtures/tags, where there's a test file with a space in it that seems to be part of the distribution of the gem; the file isn't necessary for the gem to be used. |
I had the same issue with Steep so I had to soutaro/steep#962. Maybe it would be great to filter runfiles, but what do you think if we also print a message about that? Something like |
I'm having some second thoughts on what the issue really is. I tried to reproduce from the solution we arrived at in #72, and I found some interesting things:
It looks like using |
Okay, so I am on the fence whether we need to merge this as-is or do something else. @alexeagle Do you happen to know how other rulesets handle runfiles with spaces? |
I don't think this is right, we've never filtered files out of the runfiles in other contexts. I think there needs to be an issue filed on this repo first, showing the existing problem so we can understand what layer the bug is in. |
Ok, given the original problem is gone and based on Alex's judgment, I'm going to close this for now. Let's create follow-up issues when somebody runs into the problem. |
Remove runfiles that contain spaces in their filenames, typically seen as gems with poor file naming choices. The
--experimental_inprocess_symlink_creation
flag is recommended to get around the issue noted in bazelbuild/bazel#4327, but that workaround does not seem to work inbazel build
contexts.