Thank you for feedback. I've tried without the PBP plugin and templates, and it did the same anyway.
I just peeked in the Module::Starter::Smart source code, to find the same thing as you, the error message comes from create_basedir().
The documentation says:
"When invoked, the plugin checks if the distribution is already created. If so,
the plugin would bypass C<create_basedir>) and go ahead pull in all the
existing modules and test files; these information would be used later in the
corresponding file creation subroutines for skipping already-created files"
So, it means that the create_distro() function doesn't do its job : it should not call create_basedir(), when the C:/My-Example already exists.
* Tweaking-searching in the modules... *
Ah !!! Here you go, i found the problem ! By adding print() statements both in Module/Starter/Simple.pm and Module/Starter/Smart.pm, i realized that when i use module-starter, it's Module::Starter::Simple who runs, not Module::Starter::Smart
If anybody knew why, it'd be good to hear. Otherwise, i'll have to try and understand how Module::Starter::Simple checks for plugin in the configuration file, and then uses them. I'll see if-when i have the time.
At least, part of the mystery is solved.
Edit-bis : my last Edit was wrong.
In reply to Re^4: Adding a class to a module - Can Module::Starter or Dist::Zilla help?
by mascip
in thread Adding a class to a module - Can Module::Starter or Dist::Zilla help?
by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |