Commit 1b7a99f
Do not create public alias for omitted top-level deps
Summary:
Previously, a workspace member fixup containing `omit_deps` would cause the dependency to be omitted as a dependency of the workspace member, and would **usually** also skip generating Rust library targets and `alias` for that dependency, effectively omitting it from the dependency graph.
Except in the case that some other transitive dependency path to that dependency existed, in which case Rust library targets would be produced (correct behavior) and as an unintended side effect a publi `alias` target would also be produced.
This diff fixes the unintended effect by making workspace member `omit_deps` cause `alias` targets to be omitted for that dependency. You will only get `alias` targets for things that are actually a dependency of some workspace member after taking into account `omit_deps` fixups, whether or not the thing is part of the transitive dependency graph somewhere.
Reviewed By: capickett
Differential Revision: D116041689
fbshipit-source-id: 9212d429b077a587255a5c35b857ca7f916082bb1 parent 65703c6 commit 1b7a99f
1 file changed
Lines changed: 16 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
207 | 199 | | |
208 | 200 | | |
209 | 201 | | |
| |||
0 commit comments