Open oplambeck opened 4 years ago
Handle case where the user tries to republish without deleting their previous branch from the fork. Ideally recognize the issue and ask for confirmation before deleting the branch and republishing.
@ben-albrecht Could you provide some set of commands to reproduce this ?
I think this can be reproduced by trying to publish a package twice, e.g.
mason publish
...
mason publish
Let me know if that doesn't help, and I'll try to get a more precise reproducer.
Three general improvements to
mason publish
@Spartee @ben-albrechtClear up error message when user does not commit their work to the package they are trying to publish. Current behavior below.
Have mason publish accept a relative path to a local registry.
Handle case where the user tries to republish without deleting their previous branch from the fork. Ideally recognize the issue and ask for confirmation before deleting the branch and republishing.
"This will delete branch "Foo" on your mason-registry fork. Proceed? [Y/n]" response from user. This would make it easier to re-publish if a mistake was made in the initial commit published. Currently, re-publishing gives this error: