Re: Can dist_version_from be evaluated at './Build dist' time?

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# from Andreas J. Koenig
# on Monday 23 June 2008 23:42:

>dist_version_from => 'lib/.../Foo.pm'
>(2)  ./Build dist          # builds the distro for 0.0.2
>(3)  edit lib/.../Foo.pm
>      # development continues and Foo reaches 0.0.3
>(4)  ./Build dist          # again builds the distro for 0.0.2
>
>I would have expected that step (4) builds the distro with 0.0.3 in
>the name, instead it built 0.0.2 again. I had to re-run 'perl
>Build.PL'.

I believe that any info which could be a string or "..._from" in the 
constructor is going to display this behavior (e.g. abstract_from for 
META.yml) because of the way the build notes support works.

It probably *should* pick-up on the change, but I think that means 
having more dependency targets (a lot of I/O churn on every action?) or 
adding checks in distmeta, etc.

So, I don't think it is exactly intended, but that is how it is.

--Eric
-- 
So malloc calls a timeout and starts rummaging around the free chain,
sorting things out, and merging adjacent small free blocks into larger
blocks. This takes 3 1/2 days.
--Joel Spolsky
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.