Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Module-CoreList CPAN distribution.

Report information
The Basics
Id: 25256
Status: resolved
Priority: 0/
Queue: Module-CoreList

People
Owner: RGARCIA [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: first_release behavior undefined, confusing
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 930
Download (untitled) / with headers
text/plain 930b
The behavior of first_release is undefined. What constitutes the "first" release? Is it by date or by version? I figured it would be by version, turns out its by date. This bit me in the ass as I often use "corelist My::Module" to determine when it was put into the core so I can set INSTALLDIRS appropriately. This bit me in the ass as Test-Simple is in 5.6.2 and 5.7.3 but as 5.7.3 was released before 5.6.2 then corelist reports 5.7.3. The result is ticket 25163. I think sorting by version is more useful, its the order most people think of. A progression of newer technologies. Most folks are unaware that 5.7.3 was released after 5.6.2. The versions which sort differently by date and by release are: 5.4.5 5.9.0 5.6.2 5.5.4 5.9.1 5.9.2 5.9.3 At the very least it should be documented. Adding a first_version() method would neatly solve the problem though then the question of which to use for "corelist" arises.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-23294-1178797481-779.25256-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 158
Download (untitled) / with headers
text/plain 158b
This is solved in M::CoreList 2.11, where the behaviour of first_release() has been modified. The old behaviour is still available as first_release_by_date().


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.