-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Use minified .js files from submodule in source-build #56864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this going to work in the product source build. I was naively expecting BuildNodeJS to be defaulted to false when DotNetBuildSourceOnly is true. Also I see there are a few places that specify the following condition which I wasn't expecting would be true anymore:
Condition="'$(BuildNodeJS)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'"
I was assuming we'd modify the product source build script to pass |
As things currently stand we could remove that the |
Although I can see the argument for |
That would work. I generally prefer encapsulating this within the repo as then it just needs to be defined in one place as to what the source-build behavior is. Without this you are duplicating this in your source-build CI legs as well as the product source-build. Ideally build.sh -sb at the repo level would behave the same or as close to as possible to the product source-build. |
Yes - I think our posts overlapped :) |
I get your viewpoint. IMO it makes the current source confusing though as this condition would/should never happen. |
Updated to set |
Do you plan to drop the |
I'll defer to @javiercn on that one - I'd be fine going back to an online restore for the non-source build case, if there isn't a strong reason to keep |
…etcore into wtgodbe/NPMSubmodule
We can remove the cache submodule; it'll simplify things if we don't need it. |
Fixes #56472. CC @dotnet/distro-maintainers
The build now uploads the minified .js files as a build artifact to make updating the submodule easier