App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

curl silently fails if `~/perl5/perlbrew/dists` does not exist

Open leonerd opened this issue 1 year ago • 1 comments

I already had a ~/perl5/perlbrew/ directory in place for unrelated reasons, but it did not contain the dists/ subdirectory. Attempting a new install in this situation makes curl fail with error code 23 (harder to debug because of the --silent option). Manually testing the command that it printed but without --silent soon leads to discovering the problem. A simple

mkdir ~/perl5/perlbrew/dists

solved the problem.

leonerd avatar Jun 10 '24 08:06 leonerd

The directory ~/perl5/perlbrew/dists is supposed to be made by running perlbrew init.... although I guess it would not hurt to let perlbrew to automatically create it right before it is needed.

gugod avatar Jun 12 '24 15:06 gugod