Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir][build_defs] Fix fb_deps and fb_test_deps logic
Summary: In our build defs, `fb_test_deps` can work when used with `rust_unittest`, but if used with `rust_{binary,library}`, the argument does not get forwarded to unittest rule, but to the main rule (since it starts with `fb_test_`, and we only check for `test_`). There's also a problem that if we have both `fb_deps` and `fb_test_deps`, one will override the other, instead of merging. In this diff, I'm changing `_split_rust_kwargs` to be able to turn `kwargs["fb_test_deps"]` into `test_kwargs["fb_deps"]`. Test Plan: Signals here should catch regressions Reviewed By: sergeyfd Differential Revision: D68327867 fbshipit-source-id: aa43b473aec6fcddbf9dcb725e231ee9eeb64f35
- Loading branch information