-
Notifications
You must be signed in to change notification settings - Fork 258
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
nuget CLI should print the URL to the package page #6333
Comments
I recommend addition of the following note:
|
Will the protocol be changed to return this information? Or is it expected that the client will hardcode this for nuget.org? |
@emgarten not sure. But doesn't client print the messages from the service? Or is it only for errors? |
I'm not sure. There is a generic way to print warnings, but those are always warnings. |
Worth an investigation. I feel the response should be 202 as per the REST response codes guidelines which states the following: 202 Accepted |
I think getting that information from the server seems like the right thing to do here. cc @joelverhagen for server side input. |
It looks like However this could impact other services that push packages to nuget.org such as myget and appeveyor which we should consider. The safest fix would be to make a new endpoint, or to pass a parameter when pushing. |
Isn’t 202 also a success and unless the clients are looking for only 200 and no other response codes, this should be okay. How do older nuget.exe fare? |
My bad - I didn’t see you already mentioned 2.8.6 :) |
Just had a discussion with @rrelyea where it dawned upon us that we do not allow So I guess it's more about third party clients. Also I think MyGet should not have any issues as they can make the change and since they are a service they do not have to deal with old behavior. The same goes with AppVeyor and Octopus Deploy. Tagging the usual suspects :) Paket @forki @isaacabraham |
For the Agreed that 202 is more appropriate. Easy server-side fix. We just need to be careful with the clients as you guys have been investigating. Given the 4.1 restriction that @anangaur mentioned, it seems like we should go for it as long as the community doesn't raise any red flags. Concerning the gallery URL, I can think of the following approaches (there may be others).
One hack for older clients would be to use the warning header that client observes. This would make the text appear in yellow I think which may not be desired. |
After a package is pushed, it undergoes several async validations. The package details page is the only place where the owner can check the latest status of these validations and if package publishing succeeded. This page becomes more important as we add more validations.
Hence, after a package has been pushed using the CLI (nuget.exe or dotnet), it should also print the URL to the package details page.
cc: @anangaur
The CLI output should read:
The text was updated successfully, but these errors were encountered: