-
Notifications
You must be signed in to change notification settings - Fork 47
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
✨ Select highest tag when there are sibling tags #279
base: main
Are you sure you want to change the base?
Conversation
Oh I didn't notice tests were not passing on CI. I don't have time today I think. I will definitely try to fix those. |
I had to approve CI to run. I'll see any further updates sooner now that I'm watching the PR. |
I run the tests locally. They are passing. |
I'll take a look later this week. |
(sorry for the slower-than-promised response time) Well, this looks reasonable to me, though I don't know the code in this repo — my involvement here is largely administrative. So I'd be inclined to optimistically merge, as it could always be refined later. But I have one question for @dwijnand and @eed3si9n — is there prior art for the version number comparison logic, something we could be using instead of adding or own custom code...? (I imagine this wheel has been reinvented many times in many programming languages...) Something in sbt itself perhaps? |
The exact detail of what's considered high or low actually depends on the impl detail of Ivy or Coursier for somethings like 1.0-A1 vs 1.0-RC1, iirc but sbt implements https://www.scala-sbt.org/1.x/api/sbt/librarymanagement/SemanticSelector.html, which lets you create a semantic versioning selector a la npm version expression, which can say greater than based on SemVer logic, which is usually good enough. |
@jprudent want to take a stab at using the API Eugene suggests? |
sure! let's change the status of PR to changes required, I'll have a look soon |
Hello fellows, I need a bit of advice. This project has 2 modules:
The class SemanticSelector is provided by librarymanagement-core which is an SBT artifact, and not available in |
Add the dependency to the core. |
Hello, I added the dependency as
Commits can be squashed. |
What's the reasoning there? Note that CI is failing. |
Co-authored-by: Seth Tisue <[email protected]>
Hello Seth, thanks again for your time and feedback. I didn't notice that the project was cross compiled. The CI does a I just changed the dependency to pull the correct artifact depending of scala version. Note that scala 3 artifacts are still alpha in the repo The theory behind the I will set the dep as Thanks again and sorry for all that churn. |
This fixes issue #238