-
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
delete nonexistent feeds #40067
delete nonexistent feeds #40067
Conversation
ux nit: this kind of error should not print usage. if the error relates to "unknown option" only then it makes sense to print usage (or simply |
Totally agree with this nit - unfortunately we'll need to do a little digging to see if nuget itself is printing the usage or if that's being added by the SDK CLI in our generic error handler middleware. Would you mind writing up an issue for this? |
|
I believe that our internal codeflow PRs automatically add these two "nonexistent" feeds. They just aren't available publicly. Not sure if there's a way for us to condition the removal to only internal builds. CC @mmitche ? |
@marcpopMSFT these are automatically added on internal builds (via |
Not sure we have the ability to read a passed in switch in these particular helix launch files. They are run on the helix machines so it would need to be an environment variable we could detect for internal versus public. |
It does look like those scripts do get passed some parameter:
So you can probably add another based on whether to clean out feeds. Alternatively, maybe you could pipe the command output to null? |
@kasperk81 thoughts on the options Matt suggested since this is your PR? Those feeds do exist in our internal builds and part of the goal of removing them was to reduce friction we've seen with Azdo in the past where we query too frequently and get throttled (2k packages downloaded during our tests times 20 feeds is a lot of Azdo queries per leg). piping the output of those lines to null would probably be the simpler change that trying to include another input argument. |
i don't really understand why piping to null instead of deleting the lines in SetupNugetSources is preferred. i'll close this pr and let Matt or someone else take a look. |
from ci: