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

Added binary versions to module-ignore inputs #600

Conversation

j-mie6
Copy link
Collaborator

@j-mie6 j-mie6 commented Jul 8, 2023

Added the binary scala suffix to the end of the module names for Submit Dependencies. The result of the change can be seen in the CI file. Fixes #597

Copy link
Collaborator

@mzuehlke mzuehlke left a comment

Choose a reason for hiding this comment

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

To me that looks like the best solution

Global / noPublishModulesIgnore ++= crossScalaVersions.value.map { v =>
// the binary versions are needed for the modules-ignore in Submit Dependencies
// it's best to pick them up here instead of guessing in the CI plugin
s"${thisProjectRef.value.project}_${CrossVersion.binaryScalaVersion(v)}"
Copy link
Member

Choose a reason for hiding this comment

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

Unfortunately this is not sufficiently general. You should do something like this.

CrossVersion(
crossVersion.value,
scalaVersion.value,
scalaBinaryVersion.value
).map { cross =>

Copy link
Member

@armanbilge armanbilge Jul 8, 2023

Choose a reason for hiding this comment

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

btw, to dog-food this we can add some more no-publish modules to sbt-typelevel's own build.

Maybe one enabling the Scala.js plugin, one disabling cross versions (i.e. a java module) and another enabling full cross versions (i.e. a compiler plugin)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

can the crossVersion be assumed to be the same across all the cross-versions?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I suppose that has to be the assumption, otherwise everything breaks down 😅

j-mie6 added 2 commits July 8, 2023 15:45
… change to generated CI, illegal configurations are dropped gracefully
@j-mie6 j-mie6 requested a review from armanbilge July 8, 2023 14:46
Copy link
Member

@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.

thanks!

@j-mie6 j-mie6 merged commit 6eeaf48 into typelevel:main Jul 9, 2023
@j-mie6 j-mie6 deleted the 597-dependency-submission-includes-spurious-dependencies branch July 9, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency submission includes spurious dependencies
3 participants