Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not find yath" when using local::lib #210

Open
jon-gentle-vectorsolutions opened this issue Jan 4, 2021 · 0 comments
Open

"Could not find yath" when using local::lib #210

jon-gentle-vectorsolutions opened this issue Jan 4, 2021 · 0 comments

Comments

@jon-gentle-vectorsolutions

We use local::lib style installs extensively for our application. Recently we started using Test2::Harness into local::lib to do our testing. We have ran into an issue when trying to install Test2::Harness::Renderer::JUnit, it uses App::Yath::Util::find_yath for its tests. However, the tests fail because App::Yath::Util::find_yath will not find the local::lib installed yath script since its not in %Config.

Below is an example of how to replicate this. I suspect this is related to cpanel/Test2-Harness-Renderer-JUnit#14 .

> mkdir find_yath_test
> cd find_yath_test/
> cpanm -L local App::Yath::Util
--> Working on App::Yath::Util
...
Building and testing Test2-Harness-1.000042 ... OK
Successfully installed Test2-Harness-1.000042
15 distributions installed
> eval $(perl -Mlocal::lib=local)
> which yath
/.../find_yath_test/local/bin/yath
> perl -MApp::Yath::Util -e 'warn App::Yath::Util::find_yath'
Could not find yath in Config paths at /.../find_yath_test/local/lib/perl5/App/Yath/Util.pm line 52.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant