-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Don't publish to sonatype twice #7803
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
Conversation
This is a quickfix to prevent CI from failing publish phases. Since other phases (such as github release) may depend on sonatype release, the fact that sonatype release fails may also fail these phases needlessly thus complicating the release process. We should do the publish of tasty core together with the other artefacts.
this is the same as reverting #7724 |
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.
I think if this is just to fix the publish step crashing then the other PR should be reverted
@@ -107,7 +107,7 @@ steps: | |||
- test_sbt | |||
- test_java11 | |||
commands: | |||
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease ;project tasty-core-scala2; publishSigned ;sonatypeBundleRelease" | |||
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease" |
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.
If the problem is that some artifacts get uploaded twice, we can clean the locally published artifacts in the middle:
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease" | |
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease ;sonatypeBundleClean ;project tasty-core-scala2; publishSigned ;sonatypeBundleRelease" |
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.
I don't think that'll help. The problem is not the staging area but maven central. By the time sonatypeBundleRelease
finished, the staging area is promoted to maven central, and we can't clean up that.
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.
If you figure something out, please let me know because I think I have been having the same problem. ekrich/sconfig#61
Superseded by #7823 |
This is a quickfix to prevent CI from failing publish phases. Since other phases (such as github release) may depend on sonatype release, the fact that sonatype release fails may also fail these phases needlessly thus complicating the release process. We should do the publish of tasty core together with the other artefacts.