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

Adopt sbt-circe-org #361

Merged
merged 18 commits into from
Feb 6, 2023
Merged

Adopt sbt-circe-org #361

merged 18 commits into from
Feb 6, 2023

Conversation

fthomas
Copy link
Collaborator

@fthomas fthomas commented Feb 6, 2023

This is similar to what @armanbilge did in circe/circe-fs2#394 so that releases can be done via CI.

Note that circe-config's version tags currently don't start with a v but sbt-typelevel mandates that. So after this is merged, new tags with the v prefix that point to the old tags should be added and pushed:

git tag v0.8.0 0.8.0
git tag v0.7.0 0.7.0
...

Without that, version and mimaPreviousArtifacts for example won't be set correctly.

@armanbilge
Copy link
Contributor

ScalaCheck had the same issue with old tags, here's a workaround for MiMa.
https://github.com/typelevel/scalacheck/blob/fc50bed0f75a7cc49ce382ed20a6ecaad644bb2a/build.sbt#L56-L67

armanbilge
armanbilge previously approved these changes Feb 6, 2023
Copy link
Contributor

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the mima version thing mentioned above, LGTM AFAICT 👍 thank you so much!

build.sbt Outdated Show resolved Hide resolved
zmccoy
zmccoy previously approved these changes Feb 6, 2023
Copy link
Member

@zmccoy zmccoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the mima fix that @armanbilge mentioned this looks great! Thank you so much

Co-authored-by: Arman Bilge <[email protected]>
build.sbt Outdated Show resolved Hide resolved
@fthomas fthomas dismissed stale reviews from zmccoy and armanbilge via 0d5bed5 February 6, 2023 16:00
build.sbt Outdated Show resolved Hide resolved
zmccoy
zmccoy previously approved these changes Feb 6, 2023
Copy link
Member

@zmccoy zmccoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@fthomas
Copy link
Collaborator Author

fthomas commented Feb 6, 2023

Sorry @zmccoy for dismissing your last review, but I noticed that my changes removed coverage reporting from CI.

I thought that my last commit would bring it back, but the upload of the coverage report failed with:

[2023-02-06T19:36:38.212Z] ['error'] There was an error running the uploader: Flags must consist only of alphanumeric characters, '_', '-', or '.' and not exceed 45 characters. Received 2.12.15,temurin@11

Update: This needs to be fixed in sbt-circe-org: https://github.com/circe/sbt-circe-org/blob/d5ffac69ce6cd424388dc7267ad00671b6982cd5/core/src/main/scala/io/circe/sbt/CirceOrgPlugin.scala#L92-L94

fthomas added a commit to fthomas/sbt-circe-org that referenced this pull request Feb 6, 2023
The ${{matrix.java}} flag prevents the coverage report from being
uploaded if the value of that variable contains an `@`, see
circe/circe-config#361 (comment)
fthomas added a commit to fthomas/sbt-circe-org that referenced this pull request Feb 6, 2023
That variable prevents the coverage report from being uploaded if it
contains an `@`, see: circe/circe-config#361 (comment)
@fthomas
Copy link
Collaborator Author

fthomas commented Feb 6, 2023

Coverage reporting should be fixed with the next sbt-circe-org version but I don't think this is a blocker for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants