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

toolchain uses host's perl libs #63

Open
ashi009 opened this issue Aug 12, 2024 · 0 comments
Open

toolchain uses host's perl libs #63

ashi009 opened this issue Aug 12, 2024 · 0 comments

Comments

@ashi009
Copy link

ashi009 commented Aug 12, 2024

The perl keeps using host's perl library:

Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/bazel/.cache/bazel/_bazel_bazel/8c069df52082beee3c95ca17836fb8e2/sandbox/processwrapper-sandbox/3/execroot/__main__/external/openssl/Configure line 15.

So having @rules_perl//:current_toolchain in an action sandbox, won't provide a valid perl runtime.

The temporary fix is to add PERL5LIB to env, and point to the lib directory in the toolchain.

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