-
Notifications
You must be signed in to change notification settings - Fork 257
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
It's not possible to push to HTTP sources specified via command line #14047
Comments
It looks like the option for --allow-insecure-connections does not exist for the |
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="src" value="http://test" allowInsecureConnections="true" disableTLSCertificateValidation="true"/>
</packageSources>
</configuration>
|
to learn more about configuration files: https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior |
I can confirm this is broken in .NET 9. Pushing to a HTTP NuGet server worked fine in .NET 8 but not anymore. |
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="src" value="http://test" allowInsecureConnections="true" disableTLSCertificateValidation="true"/>
</packageSources>
</configuration> Similar to the To identify the configuration files accessible in your environment, you can run the following command: dotnet nuget config paths This will display the list of When running the dotnet nuget push command, ensure that the dotnet nuget push *.nupkg --source src Here, |
Yes, I am aware of the configuration file and have set |
Thank you for the quick response! The reason this works in .NET 8 is likely because .NET 8 treats HTTP issues as warnings rather than errors. In .NET 9, however, these have been elevated to errors, though it is still possible to disable them. Based on your response, it seems like you were unable to disable the error using the
|
NuGet Product Used
dotnet.exe
Product Version
9.0.102
Worked before?
Worked in .NET 8
Impact
I'm unable to use this version
Repro Steps & Context
We are specifying the local package source in our CI scripts. The URL is only accessible from CI machines and is dynamically selected based on the branch, so it can't be set in NuGet.config file.
We are running
dotnet nuget push ./artifacts/packages/**/*.nupkg --api-key *** --source http://1.2.3.4/v3/index.json
.It worked previously, but now complains about HTTP sources on our local network being insecure.
The command suggest using allowInsecureConnections, but it's not possible to set that option via CLI.
Am I missing something or is that use case now broken with .NET 9 SDK?
BTW, why are you requiring an SSL cert for an IP address? How is one even supposed to get one for local IP.
The text was updated successfully, but these errors were encountered: