0

我在 OSX 和 Linux 上使用Par::Packer为一些使用 Paws 的应用程序创建二进制文件。

我这样称呼 pp :

pp -o build_cluster -x -c -I lib/ @ppdeps bin/build_cluster

ppdepspp包含由于在构建时未检测到而导致失败的模块列表。我知道使这项工作的唯一方法是pp重复运行,等待它失败,然后将它抱怨的模块添加到ppdeps.

我的问题是是否有更好的方法来做到这一点,或者事先获得完整的依赖关系列表?我可以编写一个脚本来手动完成我一直在做的事情,但如果有更好的方法,我会很高兴知道。

ppdeps 内容:

-I local/lib/perl5/
-a fakename.conf
-M Paws::Net::Caller
-M Paws::Net::RetryCallerRole
-M Paws::Net::APIResponse
-M Paws::Net::S3Signature
-M Paws::Net::RestXmlCaller
-M Paws::Net::RestXMLResponse
-M Paws::API::Caller
-M Paws::API::EndpointResolver
-M Paws::S3
-M Paws::S3::ListBuckets
-M Paws::S3::ListBucketsOutput
-M Paws::Route53
-M Method::Generate::BuildAll
-M IO::Socket::SSL
-M Net::SSLeay
-M Archive::Zip::ZipFileMember

这是不完整的,我仍在为这个应用程序构建它。应用程序中包含的 Paws 模块越多,弹出的隐藏依赖项就越多。

这只是使用 Paws 以及在较小程度上使用 Moose 的应用程序的问题。

4

1 回答 1

1

这是我如何构建的。

pp -o build/run -B -I local/lib/perl5/ script/app.pl 
于 2018-08-09T19:20:37.820 回答