miyagawa / Carmel

CPAN Artifact Repository Manager
Other
138 stars 17 forks source link

Taint mode is not supported #76

Closed miyagawa closed 2 years ago

miyagawa commented 2 years ago

when you run a perl script/test with -T on its shebang, Carmel would eventually fail with a weird error.

➜  carmel exec prove /Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.10/t/file.t
/Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.10/t/file.t .. Can't use an undefined value as an ARRAY reference at /Users/miyagawa/.plenv/versions/5.32.1/lib/perl5/site_perl/5.32.1/Carmel/Runtime.pm line 24.
BEGIN failed--compilation aborted.
/Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.10/t/file.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 

Test Summary Report
-------------------
/Users/miyagawa/.carmel/5.32.1-darwin-2level/builds/URI-5.10/t/file.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=1, Tests=0,  0 wallclock secs ( 0.01 usr +  0.00 sys =  0.01 CPU)
Result: FAIL

This likely won't be fixed, but should be documented as a known issue, or detect it's running with -T and fail/warn.