| 1 | package Acme::CPANModules::OneAndTwoDecimalDigitsVersionTrap; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |
| 4 | 1 | our $DATE = '2020-01-03'; # DATE | |
| 5 | 1 | our $DIST = 'Acme-CPANModules-OneAndTwoDecimalDigitsVersionTrap'; # DIST | |
| 6 | 1 | our $VERSION = '0.002'; # VERSION | |
| 7 | |||
| 8 | 1 | our $LIST = { | |
| 9 | summary => 'Chronicle CPAN distributions which have been trapped by the one- and two decimal digits versioning scheme', | ||
| 10 | description => <<'_', | ||
| 11 | |||
| 12 | The x.y and x.yy versioning scheme used in Perl distribution has a trap: when | ||
| 13 | you release a new version by incrementing the patchlevel part into x.y.z and | ||
| 14 | x.yy.z, the new version number will be *less* than x.y and x.yy because x.y and | ||
| 15 | x.yy will numify to x.y00 and x.yy0 respectivey; while x.y.z and x.yy.z will | ||
| 16 | numify to x.00y.z and x.0yy, respectively. | ||
| 17 | |||
| 18 | So if you release Acme-MyDist-0.1 (numifies to 0.100000) then Acme-MyDist-0.1.1 | ||
| 19 | (0.001001), or Acme-MyDist-0.01 (0.010000) then Acme-MyDist-0.01.1 (0.001001), | ||
| 20 | PAUSE will *refuse* to index your new version because of "decreasing version | ||
| 21 | number." | ||
| 22 | |||
| 23 | This does *not* happen when you release Acme-MyDist-0.001 (0.001000) and then | ||
| 24 | Acme-MyDist-0.001.1 (0.001001). | ||
| 25 | |||
| 26 | This thing is peculiar to Perl, and is not intuitive. Consequently, sometimes | ||
| 27 | CPAN authors are not familiar with this and thus have fallen into this trap. | ||
| 28 | |||
| 29 | This list chronicles distributions which have been trapped by this. | ||
| 30 | |||
| 31 | For a bit more details, see | ||
| 32 | <https://perlancar.wordpress.com/2018/09/10/should-i-choose-x-yy-or-x-yyy-versioning-scheme-for-my-perl-module/> | ||
| 33 | and also <pm:version>. | ||
| 34 | |||
| 35 | _ | ||
| 36 | entries => [ | ||
| 37 | # sorted by time, from most recent | ||
| 38 | |||
| 39 | { | ||
| 40 | module=>"Validate::Simple", | ||
| 41 | summary=>"From 0.01 to 0.01.1", | ||
| 42 | date=>"2020-01-01", | ||
| 43 | author=>"ANDREIP", | ||
| 44 | description=><<'_', | ||
| 45 | |||
| 46 | Author's comment in ChangeLog: "Change version properly." | ||
| 47 | |||
| 48 | _ | ||
| 49 | }, | ||
| 50 | |||
| 51 | { | ||
| 52 | module=>"Bencher", | ||
| 53 | summary=>"From 0.46 to 0.46.1", | ||
| 54 | date=>"2016-03-31", | ||
| 55 | author=>"PERLANCAR", | ||
| 56 | description=><<'_', | ||
| 57 | |||
| 58 | Author's comment in ChangeLog: "This version number is broken because 0.46 > | ||
| 59 | 0.46.1 because 0.46 normalizes to 0.460.000 while 0.46.1 is 0.046.100. This has | ||
| 60 | happened a few times to me in other distributions too, so perhaps it's time to | ||
| 61 | consider switching to a 3-digit minor version." | ||
| 62 | |||
| 63 | Author's blog post: | ||
| 64 | <https://perlancar.wordpress.com/2018/09/10/should-i-choose-x-yy-or-x-yyy-versioning-scheme-for-my-perl-module/> | ||
| 65 | (2016-09-10). | ||
| 66 | |||
| 67 | _ | ||
| 68 | }, | ||
| 69 | |||
| 70 | { | ||
| 71 | module=>"Array::Compare", | ||
| 72 | summary=>"From 2.12 to 2.12.1", | ||
| 73 | date=>"2016-12-08", | ||
| 74 | author=>"DAVECROSS", | ||
| 75 | description=><<'_', | ||
| 76 | |||
| 77 | Author's comment in ChangeLog: "Fixing the idiocy in the previous version." | ||
| 78 | |||
| 79 | Author's blog post: <https://perlhacks.com/2016/12/version-numbers/> | ||
| 80 | (2016-12-13). | ||
| 81 | |||
| 82 | _ | ||
| 83 | }, | ||
| 84 | |||
| 85 | { | ||
| 86 | module=>"Acme::CPANLists", | ||
| 87 | summary=>"From 0.02 to 0.9.0", | ||
| 88 | date=>"2015-10-23", | ||
| 89 | author=>"PERLANCAR", | ||
| 90 | description=><<'_', | ||
| 91 | |||
| 92 | Author's comment in ChangeLog: "Update version number so it's higher than 0.02 | ||
| 93 | (d'oh)." | ||
| 94 | |||
| 95 | _ | ||
| 96 | }, | ||
| 97 | ], | ||
| 98 | }; | ||
| 99 | |||
| 100 | 1 | 1; | |
| 101 | # ABSTRACT: Chronicle CPAN distributions which have been trapped by the one- and two decimal digits versioning scheme | ||
| 102 | |||
| 103 | __END__ |