Skip to content

PCbuild/find_python.bat uses broken aka.ms/nugetclidl URL for downloading nuget.exe #153438

Description

@ELundby45

Bug report

Bug description:

PCbuild/find_python.bat currently defaults NUGET_URL to:

https://aka.ms/nugetclidl

This appears to no longer resolve to a valid nuget.exe download. As a result, Windows builds that rely on find_python.bat to bootstrap nuget.exe may fail before Python can be installed from NuGet.

Relevant CPython code:

@if "%_Py_NUGET_URL%"=="" (set _Py_NUGET_URL=https://aka.ms/nugetclidl)
@powershell.exe -Command Invoke-WebRequest %_Py_NUGET_URL% -OutFile '%_Py_NUGET%'

Reproducer showing that the url now redirects to bing.com

curl -vI https://aka.ms/nugetclidl

...
< HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily
< Server: Kestrel
Server: Kestrel
< Location: https://www.bing.com?ref=aka&shorturl=nugetclidl
Location: https://www.bing.com?ref=aka&shorturl=nugetclidl

CPython versions tested on:

3.15

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions