Skip to content
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

Add dependencies for System libraries that need to be lifted in the source-build / VMR context #17344

Merged
merged 7 commits into from
Jun 25, 2024

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Jun 24, 2024

Fixes dotnet/source-build#4477

Source-build lifts the MSBuild package versions to the N-1 (previously produced assets) but fsharp pins the System.Reflection.Metadata (and similar System libs) version which is a transitive dependency to 8.0.0. That results in a package downgrade error. Define a dependency for System.Reflection.Metadata (and other System libs) so that source-build can lift that version as well.

Fixes dotnet/source-build#4477

Source-build doesn't require the MSBuild entries
in Version.Details.xml anymore. Those were only
added to enable prebuilt detection.

Downgrading MSBuild to 17.8.3 and depend on the
packages coming from SBRP instead of the previously
built feed (N-1).
@ViktorHofer ViktorHofer requested a review from a team as a code owner June 24, 2024 17:57
Copy link
Contributor

✅ No release notes required

@MichaelSimons
Copy link
Member

@ViktorHofer - What are you thinking for Preview 6? Should we patch this since we are getting late in the release cycle?

@tmds
Copy link
Member

tmds commented Jun 25, 2024

@ViktorHofer - What are you thinking for Preview 6? Should we patch this since we are getting late in the release cycle?

I am passively following this as I ran into it in our CI.

If you don't need to go through hoops to get this in preview 6 that would be nice.
This affects when we're trying to do a native build on ppc64le/s390x using assets from a cross-build.

@ViktorHofer
Copy link
Member Author

Downgrading and relying on SBRP doesn't work in this case as msbuild comes in transitively and as a preview version. I will instead add a Version.Details entry for SRM which should fix the downgrade issue.

Yes, we should Patch this for P6. @MichaelSimons do we still have time for this?

@vzarytovskii
Copy link
Member

vzarytovskii commented Jun 25, 2024

Hm. The issue with that is it'll likely start failing all of our VS CI, since we rely on newer msbuild there.

Update: it is. What would be the guidance here?

@ViktorHofer ViktorHofer changed the title Downgrade MSBuild to 17.8.3 and remove live deps Add System.Reflection.Metadata dependency Jun 25, 2024
@ViktorHofer ViktorHofer changed the title Add System.Reflection.Metadata dependency Add dependencies for System libraries that need to be lifted in the source-build / VMR context Jun 25, 2024
@MichaelSimons
Copy link
Member

Yes, we should Patch this for P6. @MichaelSimons do we still have time for this?

We can't release without it.

@ViktorHofer
Copy link
Member Author

Just successfully validated that this fixes the stage 2 build error described in the linked issue. @vzarytovskii can you please merge the PR?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants