Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Failed to find share dir for dist 'Dancer2'

by tinita (Parson)
on Feb 19, 2018 at 15:28 UTC ( [id://1209479]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Failed to find share dir for dist 'Dancer2'
in thread Failed to find share dir for dist 'Dancer2'

I'm using https://metacpan.org/release/File-Share for this. It takes care of the case when you are in a source directory. (It only works for dist_dir/dist_file, not module_dir/module_file.)
Maybe Dancer2 could switch to File::Share.
  • Comment on Re^3: Failed to find share dir for dist 'Dancer2'

Replies are listed 'Best First'.
Re^4: Failed to find share dir for dist 'Dancer2'
by markong (Pilgrim) on Feb 19, 2018 at 15:58 UTC

    Whoa!It is working :)! Thank you very much!

    I'm quite surprised nobody has reported this yet: maybe all the devs have already a Dancer2 distro installed in their path :O ?

    The only thing I could still notice is that (even in templates) this function keeps returning '0.000000_000' which is probably un-related to the File::ShareDir issue though !?

      maybe all the devs have already a Dancer2 distro installed in their path :O ?
      I'm pretty sure that's the case ;-)

      The version issue is probably because the $VERSION gets written into the modules only when the dist is built. Some Dist::Zilla plugin writes $Dancer2::VERSION = ... into Dancer.pm. Can't see which plugin from looking at the dist.ini, though.

        Actually I see sub VERSION { shift->SUPER::VERSION(@_) || '0.000000_000' } inside the "main" Dancer2.pm module, but I don't see any inheritance set-up: maybe there's some trickery going on inside the sub import() ? What sub is SUPER::VERSION referring to ??

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209479]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-20 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found