[Pkg-javascript-devel] Bug#940708: Bug#940708: acorn: please revisit your versioning strategy before making a sid upload

Jonas Smedegaard jonas at jones.dk
Wed Mar 25 11:02:39 GMT 2020


[ resent without 8bit headers to please Debian MTAs; sorry Jérémy! ]

Quoting Xavier (2020-03-25 11:43:14)
> Le 25/03/2020 à 11:31, Jérémy Lal a écrit :
>>> Le 25/03/2020 à 10:26, Xavier a écrit :
>>>> And for acorn, last version becomes 7.1.1+~cs12.20.3+ds-1 ;-)
[...]
>> Could you tell how acorn 
>> 6.2.1+ds+0.4.0+~4.0.0+~1.0.0+~5.0.1+~1.7.0+~0.1.1+~0.3.1+~0.2.0+~0.1.0+~0.3.0+~0.3.0 
>> becomes 6.2.1+ds+~cs11.24.3 : how 11.24.3 is built ?
> 
> The "checksum" feature adds the digits separately:
> 
>   0       . 4               . 0
> + 4       . 0               . 0
> + 1       . 0               . 0
> + 5       . 0               . 1
> + 1       . 7               . 0
> + 0       . 1               . 1
> + 0       . 3               . 1
> + 0       . 2               . 0
> + 0       . 1               . 0
> + 0       . 3               . 0
> + 0       . 3               . 0
> --------------------------------
> = 4+1+5+1 . 4+7+1+3+2+1+3+3 . 1+1+1
> = 11      . 24              . 3
> 
>  => +~cs11.24.3
> 
> Then each component change is detected and increase checksum

Seems that covers only "clean" versions but miss components with 
trailing parts - e.g. a repackaging needing to be redone and therefore 
bumped, or a git-tracked non-version needing to bump its timestamp.

jsbundle-web-interfaces 1.1.0+~2.0.1~ds+~5.0.0+~0~20180821-1 is an 
example involving both types of trailing hints in components.

For the record, I do think it is valuable to have this mechanism even 
without handling those corner cases.  Just mentioning here in case it 
affects the whole design.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20200325/f02432ce/attachment.sig>


More information about the Pkg-javascript-devel mailing list