如何通过podfile.lock获得所有包装的列表?
由于合规性原因,我需要生成我们使用许可证使用的所有软件包的列表。也用于间接(及其)依赖性。
我知道如何使用pkg.get_metadata_lines(“ pkg-info”)
或使用YARN许可
,但我不知道该怎么做用podfile.lock。
给定一个podfile.lock,我该怎么做这样的事情:
$ get-licenses Podfile.lock
BigInt==1.2.3;MIT
CryptoSwift==4.5.6;Apache License 2.0
SwiftProtobuf==1.3.5;BSDv3
Due to compliance reasons, I need to generate a list of all software packages we use with their licenses. Also for indirect (transitive) dependencies.
I know how to do the same with Python using pkg.get_metadata_lines("PKG-INFO")
or for JavaScript using yarn licenses
, but I have no clue how to do it with a Podfile.lock.
Given a Podfile.lock, how can I do something like this:
$ get-licenses Podfile.lock
BigInt==1.2.3;MIT
CryptoSwift==4.5.6;Apache License 2.0
SwiftProtobuf==1.3.5;BSDv3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
python示例要获得传递依赖性:
此文件:
您可以使用
依赖项
或外部来源
章节。只需在存储库中找到特定的文件即可。
或者,如果您可以使用OS软件包系统找到这些软件包(然后使用,例如
YARN许可证列表
,在它们上),那是一个选择。Python example to get transitive dependencies:
Result for this file:
You can get licenses using
DEPENDENCIES
orEXTERNAL SOURCES
sections.Just find specific files in repos.
Or, if you can find those packages using the OS package system (and then use, for example
yarn licenses list
, on them), that's an option.