jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Allow skipping version manipulation to avoid getting the version mangled

Open ikus060 opened this issue 4 years ago • 6 comments

The current implementation in Utils. convert a "java" version into a "debian" version. Trying to handle alhpa, beta, release. But It doesn't cover all the scenario and we should have an option to completely skip the version mangling an keep the version of the package.

e.g.: I'm using this version 3.7.1~dev24+g1b4b40e and it get transformed into 3.7.1~dev24+g1b4~b40e.

A simple option to skip the version mangling should be added to let the users manage it own version semantic.

ikus060 avatar Dec 14 '20 03:12 ikus060

Manage to work around this by using a different property to inject that is not mangled by jdeb.

I'm using [[revision]] that is already injected in the build to define the version.

ikus060 avatar Dec 14 '20 12:12 ikus060

The mangling is clearly wrong in this case, the end of the +g1b4b40e suffix was parsed as a beta version and a ~ was inserted before the last b. I'm not sure to see how this could be avoided.

ebourg avatar Dec 14 '20 12:12 ebourg

We should have a testcase that covers all those conversions. Maybe it would be good to start with a table of how conversions should look like.

tcurdt avatar Feb 10 '21 14:02 tcurdt