question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dotnet new` does not support `--ignore-failed-sources`

See original GitHub issue

Describe the bug

The dotnet new invocation should honor --ignore-failed-sources either directly or through ENV settings of some sort

To Reproduce

Have a nuget feed in your global config that requires integrated auth. Then dotnet new <something> and you’ll see a failure:

The template "GitHub Actions workflow for .NET Core" was created successfully.
Error: Failed to read package information from NuGet source https://REDACTED/nuget/v3/index.json.

In this scenario where dotnet new is doing a restore immediately after it might be good to default to ignore-failed-sources immediately anyway.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timheuercommented, Feb 2, 2022

Yes @vlada-shubina --no-update-check worked!

0reactions
JanKrivanekcommented, Mar 29, 2022

@timheuer the default behavior now (no switch, env var or so is needed) is that nuget feeds reading errors are debug only. Error is logged only if package was not found in any feed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore inaccessible sources w/ dotnet add package
When I try to add a NuGet package via the dotnet cli I get an error that it can't access one of my...
Read more >
dotnet restore command - .NET CLI
--ignore-failed-sources​​ Only warn about failed sources if there are packages meeting the version requirement.
Read more >
Troubleshoot .NET tool usage issues
There are a few different ways to solve this: Add the --ignore-failed-sources parameter to bypass the error from the private feed and use...
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
dotnet new install - .NET CLI
The dotnet new install command installs a template package.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found