Closed mikkoi closed 3 years ago
I created a pull request for a possible solution.
Instead of changing plenv-exec, could the same thing be done with the hooks?
You can create your own plugins. See, for example, https://github.com/miyagawa/plenv-contrib
@skaji Thanks. I used plenv-contrib as a model but mine is more complicated because it needs to change the way plenv-exec works.
I see.
Where can I find instructions on how to use the hooks?
Implemented as a plugin and hook in https://github.com/mikkoi/plenv-libdirs
I work with several distributions which have interdependencies. There are, for example,
service-server
,service-client
andservice-common
. The last contains packages user by both server and client side code. I normally keep these in parallel directories. When I run tests (prove
) or scripts in either dirservice-server
or dirservice-client
, I need to add../service-common/lib
to env var PERL5LIB (or callperl -I../service-common/lib
.Could plenv take care of this? Perhaps there could be file
.perl-libdirs
next to file.perl-version
? This file would use PERL5LIB syntax:dir:other_dir
.