in reply to On Windows, With StrawberryPerl, Module::Build::Tiny fails to install a module

C:\Users\somia\build\strawberry-perl\Readonly-2.05-0>.\Build --verbose + test Skip blib\lib\Readonly.pm (unchanged)
I can reproduce that.
For me, removing the --verbose switch allows both the test and install steps to work as expected:
D:\s\Readonly-2.05>.\Build cp lib/Readonly.pm blib\lib\Readonly.pm D:\s\Readonly-2.05>.\Build --verbose test Skip blib\lib\Readonly.pm (unchanged) D:\s\Readonly-2.05>.\Build test t/bugs/001_assign.t .......... ok t/bugs/007_implicit_undef.t .. ok t/general/array.t ............ ok t/general/clone.t ............ ok t/general/deepa.t ............ ok t/general/deeph.t ............ ok t/general/deeps.t ............ ok t/general/docs.t ............. ok t/general/export.t ........... ok t/general/hash.t ............. ok t/general/readonly.t ......... ok t/general/reassign.t ......... ok t/general/scalar.t ........... ok t/general/tie.t .............. ok All tests successful. Files=14, Tests=188, 2 wallclock secs ( 0.03 usr + 0.00 sys = 0.03 +CPU) Result: PASS D:\s\Readonly-2.05>.\Build --verbose install Skip blib\lib\Readonly.pm (unchanged) D:\s\Readonly-2.05>.\Build install Installing C:\sp\_64\sp-5.40.0.1-PDL\perl\site\lib\Readonly.pm D:\s\Readonly-2.05>.\Build install D:\s\Readonly-2.05>
Note that .\Build install will exit silently if Readonly.pm is already installed.

I am always mistrustful of (and refuse to debug) any module whose name begins with "Module::".

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: On Windows, With StrawberryPerl, Module::Build::Tiny fails to install a module
by ikegami (Patriarch) on Jun 17, 2025 at 10:18 UTC

    That's because

    Build --verbose anything
    is treated as
    Build --verbose

    Demo:

    Readonly-2.05>perl Build.PL Creating new 'Build' script for 'Readonly' version '2.05' Readonly-2.05>Build --verbose install cp lib/Readonly.pm blib\lib\Readonly.pm mkdir blib\arch Readonly-2.05>Build --verbose install Skip blib\lib\Readonly.pm (unchanged) Readonly-2.05>Build clean Readonly-2.05>perl Build.PL Creating new 'Build' script for 'Readonly' version '2.05' Readonly-2.05>Build --verbose cp lib/Readonly.pm blib\lib\Readonly.pm mkdir blib\arch Readonly-2.05>Build --verbose Skip blib\lib\Readonly.pm (unchanged) Readonly-2.05>Build clean Readonly-2.05>perl Build.PL Creating new 'Build' script for 'Readonly' version '2.05' Readonly-2.05>Build cp lib/Readonly.pm blib\lib\Readonly.pm Readonly-2.05>Build Skip blib\lib\Readonly.pm (unchanged)

    One should use Build install --verbose

    Readonly-2.05>Build install --verbose Skipping C:\progs\SP5038~1\perl\site\lib\Readonly.pm (unchanged) Writing C:\progs\SP5038~1\perl\site\lib\auto\Readonly\.packlist

    It's skipping the install because it's already installed from an earlier attempt, but you can see it's installing this time.