Perl module dependency manager Carton installs dependencies into a subdirectory of the project directory, and expects perl
to be run under carton exec
to set the necessary environment variables to locate the modules. Flycheck runs plain perl
, and consequently fails to find the correct modules, reporting an error for the missing module and masking any other problems.
How do I tell Flycheck where to look for these modules?