-
Notifications
You must be signed in to change notification settings - Fork 435
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
Runfiles::create()
throws error when parse_repo_mapping
returns an error, instead of returning a default RepoMapping
#2868
Comments
Runfiles::create()
throws error when parse_repo_mapping
returns an error, instead of returning a default RepoMappingRunfiles::create()
throws error when parse_repo_mapping
returns an error, instead of returning a default RepoMapping
Why is |
I'm still trying to figure that one out, and it could be to some local patch I'm carrying. I've asked some other folks to help, but since it's (almost) the weekend I guess it will take a while. I'll let you know if we progress on this. All I know so far: the error I got was a |
I started adding some tests here: #2869 The change to make this non-fatal would be trivial but I would like to know why parsing failed. I'm not so familiar with the |
I've patched the code from my first comment above by
and it fixed the issues we were seeing. Whether there is something else broken by the |
We are also encountering this error in a project. We use Bazel 6, without bzlmod, and I think the issue is that the file just doesn't exist? The There's similar behavior when trying to use the With the latest tagged release (0.50.1), there's now a failure with the |
Before #2847 was merged
Runfiles::create()
always calledRepoMapping::new()
when theResult
ofparse_repo_mapping
was an error. Now, due to the question mark operator after thetranspose()
rules_rust/tools/runfiles/runfiles.rs
Lines 143 to 146 in 07dc023
the error is returned to the caller, instead of returning a default
RepoMapping
as before that PR.The text was updated successfully, but these errors were encountered: