You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add separate extra_deps and omit_deps fixups for build scripts
Summary:
It is goofy that when you use `extra_deps` in a fixup, those deps get applied to **both** the library/binary and to its build script. There is almost never a case you would want to add an identical dependency to both a library/binary and its build script. And in the worse case, this makes `extra_deps` completely unusable, such as when you want to add a platform-specific dependency (e.g. Android) which is incompatible with your execution platform.
Since {D73977930} there is a dedicated section for controlling the build-script build. This diff adds support for `extra_deps` and `omit_deps` in that section, and changes top-level `extra_deps` and `omit_deps` to no longer apply to build scripts.
```lang=toml
omit_deps = ["example"]
extra_deps = [":better-example"]
[buildscript.build]
omit_deps = ["example"]
extra_deps = [":better-example"]
```
Reviewed By: JakobDegen
Differential Revision: D74158951
fbshipit-source-id: cc1e8865cbcccecf6b6e2791942e61bfdd88b8e7
0 commit comments