-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[maccatalyst] Make sure MacProxy is included in System.Net.Http #91473
Conversation
dotnet#90258 identified that `HttpClient.DefaultProxy` returned `System.Net.Http.HttpNoProxy` when using MacCatalyst. This is due to a condition in System.Net.Http.csproj not including maccatalyst as a condition and as a result, skipped adding the MacProxy sources. Way back when, dotnet#47823 had the condition, but this appears to have changed in dotnet#48652 when we thought MacCatalyst would inherit settings from iOS. That turned out to not be the case and this check was never added back.
Tagging subscribers to this area: @dotnet/ncl Issue Details#90258 identified that Way back when, #47823 had the condition, but this appears to have changed in #48652 when we thought MacCatalyst would inherit settings from iOS. That turned out to not be the case and this check was never added back.
|
/azp run runtime-maccatalyst |
Azure Pipelines successfully started running 1 pipeline(s). |
/backport to release/8.0 |
/backport to release/7.0-staging |
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6086905990 |
Started backporting to release/7.0-staging: https://github.com/dotnet/runtime/actions/runs/6086908252 |
@steveisok backporting to release/7.0-staging failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: [maccatalyst] Make sure MacProxy is included in System.Net.Http
Using index info to reconstruct a base tree...
M src/libraries/System.Net.Http/src/System.Net.Http.csproj
Falling back to patching base and 3-way merge...
Auto-merging src/libraries/System.Net.Http/src/System.Net.Http.csproj
CONFLICT (content): Merge conflict in src/libraries/System.Net.Http/src/System.Net.Http.csproj
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 [maccatalyst] Make sure MacProxy is included in System.Net.Http
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128 Please backport manually! |
@steveisok an error occurred while backporting to release/7.0-staging, please check the run log for details! Error: git am failed, most likely due to a merge conflict. |
Is there a way to test this? |
How do we test it now? MacCatalyst can be thought of as osx in this particular case. |
runtime/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.Proxy.cs Line 120 in e3925e3
|
… System.Net.Http Backport of dotnet#91473 to release/7.0
Fixes #90258
#90258 identified that
HttpClient.DefaultProxy
returnedSystem.Net.Http.HttpNoProxy
when using MacCatalyst. This is due to System.Net.Http.csproj not having maccatalyst as a condition when including MacProxy sources.Way back when, #47823 had the condition, but this appears to have changed in #48652 when we thought MacCatalyst would inherit settings from iOS. That turned out to not be the case and this check was never added back.