-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix(crates): Resume workspace publish #392
Conversation
I'd argue a better way to handle this is to have multiple |
Or at least not make this behavior the default and hide behind a flag. |
Having multiple We could also add this as a flag, @chadwhitacre is there an easy way to pass a "this is a retry" flag to craft already? |
I never said "manual" 😁 I think we can expand the publish state file format to have this extra metadata. |
I see, yes that makes much more sense. If the crates target could remember the crates it already published, it could just pick up where it left off. This PR here is more meant as a quick fix, although I'm happy to wait a little longer for something proper. |
I say we merge here and reticket @BYK's idea for running this through the state file. |
Maybe with an additional comment linking to the new ticket. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
The crates target is not able to resume a workspace publish because already published crates cannot be republished. This means a partially successful publish cannot be retried.
To work around this, the
crates
target can skip publishing a crate if it already exists in this version. The downside of this is that we would silence errors when publishing the wrong version.See getsentry/publish#1070 (comment)