Fix release problem with secret-generator
#417
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Releasing v1.0.0 with
gha-scala-library-release-workflow
(introduced with PR #416) worked fine, but trying to release v1.0.1 failed, due to the unusual configuration of thesecret-generator
subproject:https://github.com/guardian/play-secret-rotation/actions/runs/7113763098/job/19366398526#step:4:153
Why wasn't
secret-generator
configured to be published?Nothing actually needs
secret-generator
as a library artifact -aws-parameterstore-lambda
usessbt-assembly
to incorporate all it's dependencies into a single jar, so even though it uses secret-generator, it doesn't need it as a separate artifact. However, the new compatibility-based version-numbering functionality introduced in scalacenter/sbt-version-policy#187 wants to compare with previous versions of project dependencies, and it doesn't understand the dependency isn't published...The easiest fix for this problem is just to publish the artifact, so I'm doing that here!
Note that after merging this PR, I also had to temporarily disable
sbt-version-policy
version numbering with 088d4f5, so that the next release would actually succeed (because it then wasn't looking for a previoussecret-generator
artifact) and publish thesecret-generator
artifact. Once release v1.0.1 succeeded, I re-enabledsbt-version-policy
version numbering with cf46179. The next release (v2.0.0) then completed successfully 👍