You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucy.apache.org by Marvin Humphrey <ma...@rectangular.com> on 2010/12/16 01:16:57 UTC

[lucy-dev] Tool for updating version numbers

Greets,

We're going to have scads of version numbers scattered throughout many files
and directories.  To make sure that none get missed when we bump versions,
perhaps we should have a script at trunk/devel/bin/update_version which knows
about all the locations that must be modified.  This script would perform
regex matching and substitution at those locations and warn if it failed to
match any of them.

Marvin Humphrey


Re: [lucy-dev] Tool for updating version numbers

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Thu, Dec 16, 2010 at 11:40:18AM -0800, Nathan Kurz wrote:
> The solution seems reasonable, but remind me why there will be version
> numbers scattered through so many places? 

The fundamental reason is that we're not a standard CPAN module.  If we we're,
we'd only need to have $VERSION at the top of Lucy.pm and to supply
dist_version_from in Build.PL (or the equivalent in Makefile.PL, I forget what
it is).  If you don't put an extra copy of the version number into your docs,
that's it, you're done.

We're doing a bunch of non-standard things: 

    * X.Y.Z version numbers.
    * Version number in POD documentation.
    * XSLoader::load() called within a BEGIN block, so we can't use $VERSION
      for esoteric compile-time/run-time reasons.
    * Different version number formats in different contexts, as covered in
      the recent thread.

At some point, we're going to want to supply version numbers via other hosts.
C, for instance:

    #define LUCY_VERSION_MAJOR 0
    #define LUCY_VERSION_MINOR 1
    #define LUCY_VERSION_MICRO 0

For the same reason that it's not feasible to derive all the version numbers
we'd need for Perl from such a canonical programmatic representation in C, I'm
assuming that there will be other hosts that will require special treatment.
Maybe not all of them, but I'm assuming that we will have a growing problem.

Marvin Humphrey


Re: [lucy-dev] Tool for updating version numbers

Posted by Nathan Kurz <na...@verse.com>.
On Wed, Dec 15, 2010 at 4:16 PM, Marvin Humphrey <ma...@rectangular.com> wrote:
> We're going to have scads of version numbers scattered throughout many files
> and directories.  To make sure that none get missed when we bump versions,
> perhaps we should have a script at trunk/devel/bin/update_version which knows
> about all the locations that must be modified.  This script would perform
> regex matching and substitution at those locations and warn if it failed to
> match any of them.

The solution seems reasonable, but remind me why there will be version
numbers scattered through so many places?  I'm not remembering this
being a problems for other projects.   I would think the version
number would be one line in text file and a global in the binary.

Nathan Kurz
nate@verse.com

Re: [lucy-dev] Tool for updating version numbers

Posted by Peter Karman <pe...@peknet.com>.
Marvin Humphrey wrote on 12/16/10 11:03 AM:

> The main point of discussing them on-list before implementing
> them is not to recruit an implementor, but to seek consensus and improve the
> design.  It's better to find out early on that the community has misgivings
> about an approach than to labor in secret over a patch which provokes
> contention when it is unveiled.

+1

> 
> Nevertheless, my immediate goal is to collaborate with you and complete the
> <http://wiki.apache.org/lucy/ReleaseGuide> you started; writing update_version
> is a sub-task of that, and if nobody snatches it out of my hands, I'm not
> going to let it get in the way.
> 

Understood.

I'm underwater with $work atm, but if, when I come up for air in a week or so,
you haven't already gotten to it, I'd be happy to take a stab.

-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com

Re: [lucy-dev] Tool for updating version numbers

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Wed, Dec 15, 2010 at 09:26:37PM -0600, Peter Karman wrote:
> is this something you plan to write? or are you offering up the idea in the hope
> someone else will take it on as a task?

I plan to write it, but if someone else were to volunteer, I'd step aside.
Ideally, I wouldn't be writing any code, since making me superfluous is a
criteria for Lucy's graduation from the Incubator!

It's true that this task is simpler than others on our TODO list -- like
eliminating the JSON::XS and Parse::RecDescent dependencies -- and it's true
that time I spend on update_version is time I don't spend on tougher problems.
But even the tougher problems are tasks that eventually, someone else should
be taking on.  The main point of discussing them on-list before implementing
them is not to recruit an implementor, but to seek consensus and improve the
design.  It's better to find out early on that the community has misgivings
about an approach than to labor in secret over a patch which provokes
contention when it is unveiled.

Nevertheless, my immediate goal is to collaborate with you and complete the
<http://wiki.apache.org/lucy/ReleaseGuide> you started; writing update_version
is a sub-task of that, and if nobody snatches it out of my hands, I'm not
going to let it get in the way.

Marvin Humphrey


Re: [lucy-dev] Tool for updating version numbers

Posted by Peter Karman <pe...@peknet.com>.
Marvin Humphrey wrote on 12/15/10 6:16 PM:
> Greets,
> 
> We're going to have scads of version numbers scattered throughout many files
> and directories.  To make sure that none get missed when we bump versions,
> perhaps we should have a script at trunk/devel/bin/update_version which knows
> about all the locations that must be modified.  This script would perform
> regex matching and substitution at those locations and warn if it failed to
> match any of them.
> 

+1

is this something you plan to write? or are you offering up the idea in the hope
someone else will take it on as a task?

-- 
Peter Karman  .  http://peknet.com/  .  peter@peknet.com