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

Version X is considered newer than Y incorrectly #19

Open
meloniasty opened this issue Feb 17, 2014 · 9 comments
Open

Version X is considered newer than Y incorrectly #19

meloniasty opened this issue Feb 17, 2014 · 9 comments
Assignees
Labels

Comments

@meloniasty
Copy link

Hi,

in my dependencies i'm using bonecp in version 0.8.0.RELEASE

 val boneCp = "com.jolbox" % "bonecp" % "0.8.0.RELEASE"

also im using sbt-updates 0.1.3 with sbt 0.13.1

when call dependencyUpdates i'm getting:

[info]   com.jolbox:bonecp                     : 0.8.0.RELEASE -> 0.8.0-rc3

but version 0.8.0-rc3 is older than 0.8.0.RELEASE

(http://mvnrepository.com/artifact/com.jolbox/bonecp, https://github.com/wwadge/bonecp/releases)

it's correct behavior?

@rtimush
Copy link
Owner

rtimush commented Feb 19, 2014

It is quite difficult to say if one version is older or newer than another just from the version text.
I will investigate if maven metadata order gives better results.

@rtimush rtimush self-assigned this Feb 19, 2014
@meloniasty
Copy link
Author

ok, it's not so important but better fix someday

maybe there is timestamp or date field to check

@rtimush
Copy link
Owner

rtimush commented Jul 23, 2014

One more example from #30:

[info] org.apache.poi:poi : 3.10-FINAL -> 3.10-beta2
[info] org.apache.poi:poi-ooxml : 3.10-FINAL -> 3.10-beta2

@lespea
Copy link

lespea commented Aug 7, 2014

Could you just lop /(?i)[-.](?:final|release)$/ off of the version string or something? (If this is a stupid suggestion I apologize; I haven't looked at how your plugin works internally).

@rtimush
Copy link
Owner

rtimush commented Aug 28, 2014

One more from #22:

nl.grons:metrics-scala:compile : 3.0.5_a2.3 -> 3.0.4

@rtimush
Copy link
Owner

rtimush commented Aug 28, 2014

And from #33

[info]   org.webjars:requirejs    : 2.1.14-1      -> 2.1.14
[info]   org.webjars:underscorejs : 1.6.0-3       -> 1.6.0

@rtimush rtimush changed the title Misunderstood deendency outpoot Version X is considered newer than Y incorrectly Aug 28, 2014
@rtimush rtimush added bug and removed enhancement labels Aug 28, 2014
@rtimush
Copy link
Owner

rtimush commented Aug 28, 2014

From #31:

[info]   asm:asm                       : 3.3.1            -> 20070324       
[info]   asm:asm-util                  : 3.3.1            -> 20041228.180559

knutwalker added a commit to knutwalker/sbt-updates that referenced this issue May 1, 2015
This resolves some parts of rtimush#19:
- 0.8.0.RELEASE -> 0.8.0-rc3
- 3.10-FINAL -> 3.10-beta2
@nafg
Copy link

nafg commented May 25, 2016

Another case (should this be another ticket?):

[info]   org.webjars:webjars-play        : 2.4.0-1 -> 2.4.0  -> 2.5.0           

It thinks that 2.4.0-1 is older than 2.4.0, when in reality it's a hotfix version.

@steven-lai
Copy link

Just wanted to add - I think you can specify something like latest.release (see http://ant.apache.org/ivy/history/2.5.0-rc1/ivyfile/dependency.html ). In general probably a bad practice to blindly use the latest version but just throwing it out there.

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

No branches or pull requests

5 participants