6.1 & 6.2: t/29unreadable.t tests fail when run as root
It's not uncommon to have perl modules installed by root in docker images, especially for one-off, quick tasks. Doing so causes the unreadable files tests to fail in releases 6.1 and 6.2.
eg docker run --rm -ti perl:5.38 bash -c 'cpanm Module::Pluggable; cat /root/.cpanm/work/*/build.log'
and the root user can read the write-only files:
# Failed test at t/29unreadable.t line 31.
# Structures begin differing at:
# $got->[0] = 'Unreadable::Foo'
# $expected->[0] = Does not exist
# Failed test at t/29unreadable.t line 36.
# Structures begin differing at:
# $got->[0] = 'Unreadable::Foo'
# $expected->[0] = Does not exist
# Looks like you failed 2 tests of 6.
t/29unreadable.t .............
@simonwistow anything we can do to help resolve this ? eg making a PR from @michal-josef-spacek patch from 156367
For cross reference https://rt.cpan.org/Public/Bug/Display.html?id=156367
@simonwistow It would be very kind to have PR #28 merged and a new version published on cpan. Thank you in advance.
@simonwistow any update on this?
@simonwistow pls :')
I would also like to express my hope that this PR can be merged. I'm adding:
RUN cpanm Module::Pluggable::Object --force
... as a workaround in my Dockerfile in the meantime, but it feels dirty to force a test
would be nice to see this fixed.