miyagawa / cpanminus

cpanminus - get, unpack, build and install modules from CPAN
http://cpanmin.us
746 stars 213 forks source link

Make output fore predictable #655

Open KES777 opened 1 year ago

KES777 commented 1 year ago

Here dependencies are in random order. And this is hard to found difference between runs:

cpanm -n -L ./local App::cpm Carton::Snapshot
 --> Working on App::cpm
 Fetching http://www.cpan.org/authors/id/S/SK/SKAJI/App-cpm-0.997011.tar.gz ... OK
 ==> Found dependencies: Module::Build::Tiny
 --> Working on Module::Build::Tiny
 Fetching http://www.cpan.org/authors/id/L/LE/LEONT/Module-Build-Tiny-0.039.tar.gz ... OK
-==> Found dependencies: ExtUtils::InstallPaths, ExtUtils::Config, ExtUtils::Helpers
+==> Found dependencies: ExtUtils::Helpers, ExtUtils::InstallPaths, ExtUtils::Config
+--> Working on ExtUtils::Helpers
+Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz ... OK
+Configuring ExtUtils-Helpers-0.026 ... OK
+Building ExtUtils-Helpers-0.026 ... OK
+Successfully installed ExtUtils-Helpers-0.026
 --> Working on ExtUtils::InstallPaths
 Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-InstallPaths-0.012.tar.gz ..>
 Configuring ExtUtils-InstallPaths-0.012 ... OK
@@ -18,49 +21,32 @@ Building ExtUtils-Config-0.008 ... OK
 Successfully installed ExtUtils-Config-0.008
 Building ExtUtils-InstallPaths-0.012 ... OK
 Successfully installed ExtUtils-InstallPaths-0.012
---> Working on ExtUtils::Helpers
-Fetching http://www.cpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-0.026.tar.gz ... OK
-Configuring ExtUtils-Helpers-0.026 ... OK
-Building ExtUtils-Helpers-0.026 ... OK
-Successfully installed ExtUtils-Helpers-0.026
 Configuring Module-Build-Tiny-0.039 ... OK
 Building Module-Build-Tiny-0.039 ... OK
 Successfully installed Module-Build-Tiny-0.039
 Configuring App-cpm-0.997011 ... OK

Would be better to implement option like --sort-dependencies to make output more consistent between runs.