-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore(deps): Non-AWS dependency updates #96
Conversation
3beeb18
to
431c756
Compare
This PR contained Play upgrades from 2.9 to 3.0, but that would require a bit more work! In the meantime, I've removed all play-related commits from this PR, and the tests now pass. |
The branch name of `update/non_aws` caused problems with the PREVIEW release workflow in this recent run for guardian/atom-maker#96: https://github.com/guardian/atom-maker/actions/runs/7905475560/job/21578205513 We saw this error from `sbt-release`: ``` Version [3.0.0-PREVIEW.updatenon_aws.2024-02-14T1807.431c7567] format is not compatible with ([0-9]+)((?:\.[0-9]+)+)?([\.\-0-9a-zA-Z]*)? ``` You can see that the existing branch-name-cleanup code in `gha-scala-library-release-workflow` (see https://github.com/guardian/gha-scala-library-release-workflow/blob/26b2cde0632c786fea6a4fc4b40c7a3cfbaa68bb/.github/workflows/reusable-release.yml#L87 , and in particular the `${GITHUB_REF_NAME//[^[:alnum:]-_]/}` part) has already done a bit of cleanup on the original branch name `update/non_aws` - making it into `updatenon_aws` with the slash (`/`) stripped out, but it's the remaining _underscore_ (`_`) that's causing the problem - the regex `sbt-release` is using for version numbers, defined here: https://github.com/sbt/sbt-release/blob/v1.4.0/src/main/scala/Version.scala#L58 ...specifically the `([\.\-0-9a-zA-Z]*)` bit, doesn't like underscores in version numbers, so the `non_aws` part is no good, and we get the version format error. Note that the current semver spec (2.0.0) has a tight constraint on allowable characters in a version string: "Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]" -- https://semver.org/#spec-item-9 ...so `sbt-release` is correct here, we shouldn't allow underscores. Consequently, this change ensures we strip underscores too - you can check this at the bash prompt like this: ``` $ GITHUB_REF_NAME="update/non_aws/roberto-tyley-is-da-coolest.so-true" $ echo "-PREVIEW.${GITHUB_REF_NAME//[^[:alnum:]-]/}.$(date +%Y-%m-%dT%H%M)" -PREVIEW.updatenonawsroberto-tyley-is-da-coolestso-true.2024-02-16T1503 ``` It would probably be nicer to convert slashes and underscores to dashes, but this at least should produce stuff that `sbt-release` doesn't mind.
@rtyley has published a preview version of this PR with release workflow run #11, based on commit 431c756: 3.0.0-PREVIEW.updatenonaws.2024-02-21T1525.431c7567 Want to make another preview release?Click 'Run workflow' in the GitHub UI, specifying the update/non_aws branch, or use the GitHub CLI command: gh workflow run release.yml --ref update/non_aws Want to make a full release after this PR is merged?Click 'Run workflow' in the GitHub UI, leaving the branch as the default, or use the GitHub CLI command: gh workflow run release.yml |
34dd71d
to
eca05e8
Compare
eca05e8
to
50e9df2
Compare
About this PR
Updates:
1.1.0
to1.4.0
4.0.0
to4.0.1
1.6
to1.9.2
22.1.0
to22.12.0
22.1.0
to22.12.0
2.9.1
to2.9.2
2.9.1
to2.9.2
0.14.3
to0.14.6
4.11.0
to5.11.0
⚠2.13.12
to2.13.13
2.8.1
to2.11.0
1.9.8
to1.9.9
1.9.8
to1.9.9
3.2.14
to3.2.18
3.2.14.0
to3.2.15.0
2.9.0
to2.10.0
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a
.scala-steward.conf
file.Have a fantastic day writing Scala!
⚙ Adjust future updates
Add these to your
.scala-steward.conf
file to ignore future updates of these dependencies:Or, add these to slow down future updates of these dependencies: