I get the following error when installing File::ShareDir. This happens consistently on a docker build .
The Dockerfile looks like so:
FROM perl:latest
RUN cpanm File::ShareDir
The output is:
# Failed test 'New module directory without read permission'
# at t/04_fail.t line 20.
# ''
# doesn't match '(?^:No read permission)'
# Failed test 'Old module directory without read permission'
# at t/04_fail.t line 20.
# ''
# doesn't match '(?^:but no read permissions)'
# Failed test 'Unreadable dist_file'
# at t/04_fail.t line 20.
# ''
# doesn't match '(?^:No read permission)'
# Failed test 'Unreadable module_file'
# at t/04_fail.t line 20.
# ''
# doesn't match '(?^:No read permission)'
# Failed test 'Unreadable class_file'
# at t/04_fail.t line 20.
# ''
# doesn't match '(?^:cannot be read, no read permissions)'
# Looks like you failed 5 tests of 24.
t/04_fail.t ........
Dubious, test returned 5 (wstat 1280, 0x500)