Uh oh!
There was an error while loading. Please reload this page.
Make DotNetBuildFromSource work in more cases. - #81480
Conversation
DotNetBuildFromSource is mostly used when this repository is built as part of source-build. With these changes the flag works in more cases, making it easier to reproduce the source-build behavior when building the runtime repository directly.
ghost
commented
Feb 1, 2023
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
omajid
commented
Feb 1, 2023
Would it make sense to drop some now-duplicated configuration from Lines 35 to 54 in 842ec4a |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tmds
commented
Feb 1, 2023
@omajid I don't know. That file doesn't actually set |
omajid
commented
Feb 1, 2023
AFAIK, arcade sets both |
tmds
commented
Feb 1, 2023
Source-build sets I don't know if it is possible to use If someone confirms it isn't, I'll remove the properties from the |
tmds
commented
Feb 6, 2023
@MichaelSimons can you review the defaults being added here when |
MichaelSimons
commented
Feb 6, 2023
Building with
IIRC there was a preference to try and localize all the source-build properties in SourceBuild.props rather than conditionalize them throughout the code base as it made it easier to determine the source-build configuration/settings. I have no strong preference and will leave that decision to the runtime folks. If these properties are defined, then yes I agree they should be removed from SourceBuild.props. |
tmds
commented
Feb 7, 2023
I think Besides that use-case, I think it's desired to be able to directly use
I think |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ViktorHofer
left a comment
There was a problem hiding this comment.
Great progress!
How do we guarantee that devs don't add new stuff to SourceBuild.props for non entry-point switches / properties? Should we add a big disclaimer to that file after the switches are passed in? What about the remaining non entrypoint properties that are still defined in the file?
tmds
commented
Feb 8, 2023
Let's look at what is still there: The properties that pass down arguments from the source-build top-level can stay. So from this list, I think we still want to move I'm not sure we need to set I'll add a comment that suggests properties that control the source-build build configuration should be added to the repository using the I ran the command I was using before again, and I noticed my target rid is |
ViktorHofer
commented
Feb 8, 2023
This YML template is the only place that enables it: |
tmds
commented
Feb 8, 2023
I'm assuming it's safe to just remove this and I don't have to add it anywhere unless CI will tell me otherwise. |
tmds
commented
Feb 8, 2023
I verified this command works as expected: I don't have any more changes in mind. |
tmds
commented
Feb 9, 2023
The CI failures seem unrelated. @ViktorHofer can you take a look at the latest changes? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tmds
commented
Feb 10, 2023
@ViktorHofer thanks for your help! |
uweigand
commented
Feb 17, 2023
This commit seems to have broken builds where Note how it is trying to use That property is computed a few lines down in the |
DotNetBuildFromSource is mostly used when this repository is built as part of source-build.
With these changes the flag works in more cases, making it easier to reproduce the source-build behavior when building the runtime repository directly.
I came to these changes by fixing the errors that came up while running the following command on my Fedora machine:
cc @MichaelSimons@ViktorHofer@omajid