Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

[major_refactor] Do not use relative path in @INC #137

Closed atoomic closed 4 years ago

atoomic commented 4 years ago

Using relative path in @INC could lead to unexpected behavior. Code can be loaded from uncontrolled locations.

When setting @INC with devlib: 'lib', 'blib', 'blib/arch' we should not use the relative PATH but prefer the absolute one.

Note that the workardound for 'projects' command need some extra love, as this seems to be the expected behavior for projects, we should avoid using an environment variable.

note: built on top of #136

exodist commented 4 years ago

This PR still has some '.' in @INC pr code in it, can you remove it so the 2 PR's are fully separate?