Rust软件包注册表中的Yanked发布的实证研究
An Empirical Study of Yanked Releases in the Rust Package Registry
摘要:
Cargo是Rust的软件打包管理器,它提供了一个yank机制来支持版本级别的弃用,这可以防止软件包依赖于yanked release。大多数先前的研究集中在代码级(即,弃用的API)和包级弃用(即,已弃用的包)。然而,很少有研究关注发布级的弃用。在这项研究中,我们调查了yank机制的使用频率和使用方式,其使用背后的原理,以及在Cargo生态系统中采用yanked release。我们的研究表明,Cargo中9.6%的包裹至少有一次被猛拉释放,并且从2014年到2020年,猛拉释放的比例不断增加。软件包所有者出于其他原因而不是撤回有缺陷的版本,例如修复不遵循语义版本控制的版本或指示软件包被删除或替换。此外,我们发现46%的软件包直接采用了至少一个yanked版本,并且yanked版本通过依赖网络传播,这导致生态系统中1.4%的版本具有未解决的依赖关系。
英文摘要:
Cargo, the software packaging manager of Rust, provides a yank mechanism to support release-level deprecation, which can prevent packages from depending on yanked releases. Most prior studies focused on code-level (i.e., deprecated APIs) and package-level deprecation (i.e., deprecated packages). However, few studies have focused on release-level deprecation. In this study, we investigate how often and how the yank mechanism is used, the rationales behind its usage, and the adoption of yanked releases in the Cargo ecosystem. Our study shows that 9.6% of the packages in Cargo have at least one yanked release, and the proportion of yanked releases kept increasing from 2014 to 2020. Package owners yank releases for other reasons than withdrawing a defective release, such as fixing a release that does not follow semantic versioning or indicating a package is removed or replaced. In addition, we found that 46% of the packages directly adopted at least one yanked release and the yanked releases propagated through the dependency network, which leads to 1.4% of the releases in the ecosystem having unresolved dependencies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。