Remove dependencies on Hash::Merge and Clone::Choose

stow 2.3.0 added external runtime dependencies on Hash::Merge and
Clone::Choose. Historically stow hasn't had runtime dependencies other
than Perl itself, which is a useful property if you're managing the
installation of Perl using stow; the bootstrapping instructions in
stow's manual would need updating to describe how to install these two
modules (and any dependencies they have now or in the future) as well.

However, Hash::Merge is much more general than stow actually needs, so
replace the merge() call with a few lines of equivalent code -- this
avoids the external dependencies, and is clearer than the merge()
call.

Many thanks to Adam Sampson for this patch:

https://lists.gnu.org/archive/html/bug-stow/2019-06/msg00001.html
This commit is contained in:
Adam Spiers 2019-06-29 13:04:30 +01:00
parent 4a9121eec9
commit 9ce10eb3b1
6 changed files with 43 additions and 19 deletions

View file

@ -29,8 +29,6 @@
"runtime" : {
"requires" : {
"Carp" : "0",
"Clone" : "0",
"Hash::Merge" : "0",
"IO::File" : "0",
"perl" : "5.006"
}