Skip to content
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

recovering from failed publish #1668

Closed
pantoninho opened this issue Sep 10, 2018 · 5 comments
Closed

recovering from failed publish #1668

pantoninho opened this issue Sep 10, 2018 · 5 comments
Labels

Comments

@pantoninho
Copy link

I'm having some troubles recovering from a failed publish.

After using lerna version, I called lerna publish from-git, which started publishing all my packages.
One of them failed (internet failure while uploading), and now I'm not able to resume the process.

If I call lerna publish it will fail as soon as it tries to re-publish one of the successfully published packages (due to publishing an already existing version).

In the past there was a bail option that allowed me to ignore failed commands and that was exactly what I was looking for, but looks like it was removed.

Is there a solution for this problem already?
Thank you

@evocateur
Copy link
Member

Actually, lerna publish has never had a --no-bail option, unlike lerna exec or lerna run. Unfortunately, the "recovery" right now is, after it fails and leaves a mostly-dirty git tree, you have to go into the package directories one-by-one and run npm publish <packageName>-<version>.tgz. If the git tree has been cleaned already, you might be able to run npm publish in the leaf directories of the affected packages. And that ... really sucks.

#1648 gets closer to a "recovery" scenario that might help make this suck less. In an ideal world, recovering from a failed publish wouldn't require ignoring failures, the command would be smart enough to skip packages that already have matching versions available in the configured registry.

@pantoninho
Copy link
Author

pantoninho commented Sep 13, 2018

@evocateur That feature would probably solve my problem.

Is it something you would like lerna to have? I may give it a go if positive.

@evocateur
Copy link
Member

Yes, I would appreciate seeing what a solution could look like. I like the from-package positional argument I described in #1648 as a gate for the preflight version checks.

@stale
Copy link

stale bot commented Dec 27, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@lock
Copy link

lock bot commented Apr 3, 2019

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants