-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.NET 8 RC2 does not honor ignore-failed-sources flag when running dotnet tool install #36473
Comments
@JL03-Yue This is probably because the |
Still an issue with 8.0.100 release. |
Hi! Chiming in to say that I am also observing the same issue. |
same here, any workaround? This issue is breaking our build pipeline, so we are unable to migrate to .net 8 SDK |
@PaulVrugt: I think a work-around would be to create a basic Nuget.Config file only containing the nuget.org feed and to pass this then to the command. |
@ChristoWolf yes thank you, I found a similar workaround |
I also had time now to try out this work-around, works fine. |
Any update on this issue? Is there a way on how we can speed up the process here? |
@hannahbellelee: I think your problem is a bit different from the reported one here, correct me if I'm wrong. The issue here is specifically caused by the newest .NET SDK. |
Hi @JL03-Yue! Has there been any progress? |
Just wanna confirm that this is still an issue with 8.0.101 |
Still an issue :( |
Here's my workaround. Create a nuget-tools.config : <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To
inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration> Then use this : dotnet tool install --global <package-name> --configfile nuget-tools.config |
I'm kind of losing hope that this will be fixed, as it is still not working today. |
^ that isn't how software works :) - ADDING scope makes it less likely to get fixed :) |
Just as a status update, this is one of a number of auth/feed related issues that we'll be looking at in the near term, but after the team finishes landing a few of their already-in-flight work items. |
Also experiencing this issue |
No this was not specific to a new version. The same thing was happening before the update... But once I noticed it wasnt fixed with the update, i posted it...There are workarounds, but there really shouldnt have to be... |
I went in to my Control Panel , into credential manager for windows, and updated any credentials for any nuget packages...then from an admin powershell reinstalled nuget...and nuget cli and after that things seemed to work which is very odd, but in any case... I will let you know if i get a chance to test again later. |
yep this is still happening on our pipelines when trying to install ReportGenerator tool in the pipeline.
|
Everytime I ran into this, it always seemed to be related to the telerik feed AUTHENTICATION. I never get an error on the devexpress feed, which also requires authentication. or any other feed. So the only thing that has fixed this for me is the following...And when I say fixed, i mean I have not had a single error since running this. Of course replace the username and password with your own.... Open the Package Manager Console in VS2022. |
For those who have this issue on CI / Azure Pipeline, and are looking for a workaround, I have found that it is possible to add a preliminary job in the configuration to force NuGet to authenticate against the Azure private feeds : jobs:
- job: Build
steps:
(...)
# NuGet authenticate
- task: NuGetAuthenticate@1
# Install report generator
- script: 'dotnet tool install -g dotnet-reportgenerator-globaltool --verbosity detailed --ignore-failed-sources' With this workaround in place, the private feeds no longer fail, and Note: this was the previous error:
|
Hi! Are there any new plans on when a fix for this can be released? |
When installing dotnet tools with a configured nuget source that fails to load, the --ignore-failed-sources flag is not honored.
Description
Configuration
.NET 8 RC2
Windows 10 Ent, x64
Regression?
This works properly with .NET 7
The text was updated successfully, but these errors were encountered: