-
Notifications
You must be signed in to change notification settings - Fork 608
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
[rush] rush build --from does not build transitive dependencies #1447
Comments
Looking into this. So the dependency graph for your repro repo is:
This illustrates a weirdness with the
I'm not sure which approach I prefer, or if there are any additional options. @octogonz, @apostolisms - thoughts? |
@iclanton: Thanks for taking a look. I just noticed the title of this issue incorrectly said We would be fine with either option (changing |
@nickpape FYI |
This picture looks exactly correct for
When you specify both parameters, you get the union That union is meaningful and useful. For example, suppose I did a clean clone of the repo, and I made some changes to B. The |
Ohhhh... wait a sec, I get it. The problem is that |
Yeah, let's fix this. |
No updates? |
What is the progress? |
This will be fixed by PR #2422 |
Closing issue since PR #2422 has been merged |
Overview
Consider a dependency graph where
B
depends onA
, andD
depends on bothB
andC
:Say I am making changes to
B
, and want to verify thatB
and all its downstream dependencies can build correctly. I use the following command:Expected
Rush should build all projects downstream of
B
, including their transitive dependencies (which are required for them to build).D
is downstream ofB
so it must be built, andC
is upstream ofD
so it must also be built.Actual
Rush does not build
C
.Workarounds
Without building the transitive dependencies of downstream projects, the only workaround I see is to build all projects in the monorepo.
Repo
https://github.com/mikeharder/rush-to-from
The text was updated successfully, but these errors were encountered: