denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.74k stars 5.21k forks source link

suggestion: improve `deno publish --dry-run` success message #22285

Closed iuioiua closed 2 weeks ago

iuioiua commented 6 months ago

Currently, when deno publish --dry-run is complete, "Warning Aborting due to --dry-run" is printed. I think this would be unclear to newcomers that the dry run has succeeded. Perhaps, we could instead print something like "Success Dry run has completed".

bartlomieju commented 6 months ago

But --dry-run should always exit with code 1, and the message matches what Cargo prints.

dsherret commented 6 months ago

I agree with @iuioiua. We can improve on cargo. Also, how would someone use this on a CI easily if it always returns exit code 1 on success and failure? Maybe we shouldn't exit with code 1?

HasanAlrimawi commented 3 weeks ago

I reproduced it, and the exit_code is 0 not 1. I observed the exit code from main.rs pub fn main().

So I think it's just a simple warning message update needed. Is this the case?

iuioiua commented 3 weeks ago

I reproduced it, and the exit_code is 0 not 1. I observed the exit code from main.rs pub fn main().

So I think it's just a simple warning message update needed. Is this the case?

It completes successfully with exit code 0, and fails with exit code 1. I think this is correct, so yes, it seems we just need to improve the success message.

iuioiua commented 2 weeks ago

Completed in #24885.