-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bootstrap stage 2 build failure in Microsoft.Build.Tasks.Git.LocateRepository task #3399
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
This seems related to the addition of Microsoft.Build.Tasks.Git.8.0.0-beta.23210.3 to the prebuilts. |
[Triage] The fix for dotnet/sdk#31863 should have come in this morning so this should be fixed. |
This is still not resolved. |
It's possible the packages from prebuilts are causing this. Removing them in dotnet/installer#16176. |
Unfortunately it didn't resolve the issue. |
@tmat, @ViktorHofer - Could you help in determining the cause of this failure? For context, this is failing in the bootstrap build workflow where we source-build the https://github.com/dotnet/dotnet repo once and then use the outputted SDK as the toolset to build the source again. It fails in that second build. I've attached the build's binlog: What's odd about the exception message is that it's complaining that Type A can't be cast to Type B even though it reports that Type A and B are the same type from the same assembly file. I suspect that it's possible the message is actually wrong here given that it's a generic type and the real casting issue is with the Here's the relevant code doing the cast: https://github.com/dotnet/dotnet/blob/e2903bde31921e07bebca58f03f6b1395dd74802/src/sourcelink/src/Microsoft.Build.Tasks.Git/RepositoryTask.cs#L150 It's possible that use of an MSBuild registered task object is a factor here. |
I took a shot in the dark and added a call to But that made no difference. |
Seems like a dup: dotnet/sourcelink#1007, dotnet/msbuild#8478 |
@rainersigwald - Please work with @tmat / sourcelink folks to determine a fix or workaround for this. This is blocking the source-build release of 8.0 Preview 4. |
As a workaround I can add try-catch around the cache lookup. It will be a potential build perf issue, but not correctness issue. |
Here: dotnet/sourcelink#1008 |
I'm gonna close this issue as it should be addressed by the above workaround. Still keeping the msbuild issue opened to track the root cause. |
I'd rather keep this open until our build is actually passing. |
@mthalman Is this expected? |
I would think that's a possibility. It would be a scenario where a project has a compile-time dependency on Microsoft.Build.Tasks.Git and the logic of the SDK has a runtime dependency on Microsoft.Build.Tasks.Git. |
This occurs in the dependency project build of SBRP when attempting to build Microsoft.NETCore.App.Ref.7.0.0.
Build link (internal only)
The text was updated successfully, but these errors were encountered: