File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ public class DependabotProxy : IDisposable
27
27
28
28
internal static DependabotProxy ? GetDependabotProxy ( ILogger logger , TemporaryDirectory tempWorkingDirectory )
29
29
{
30
+ // Setting HTTP(S)_PROXY and SSL_CERT_FILE have no effect on Windows or macOS,
31
+ // but we would still end up using the Dependabot proxy to check for feed reachability.
32
+ // This would result in us discovering that the feeds are reachable, but `dotnet` would
33
+ // fail to connect to them. To prevent this from happening, we do not initialise an
34
+ // instance of `DependabotProxy` on those platforms.
35
+ if ( SystemBuildActions . Instance . IsWindows ( ) || SystemBuildActions . Instance . IsMacOs ( ) ) return null ;
36
+
30
37
// Obtain and store the address of the Dependabot proxy, if available.
31
38
var host = Environment . GetEnvironmentVariable ( EnvironmentVariableNames . ProxyHost ) ;
32
39
var port = Environment . GetEnvironmentVariable ( EnvironmentVariableNames . ProxyPort ) ;
You can’t perform that action at this time.
0 commit comments