Hero:论PATH遇到模块时的混沌
Hero: On the Chaos When PATH Meets Modules
摘要:
自2009年首次发布以来,Go程序设计语言(Golang)一直受到软件社区的欢迎。它成功的一个主要原因是基于库的开发的强大支持,其中Golang项目可以通过引用其他项目作为库来方便地构建在其他项目之上。随着Golang的发展,它建议使用一种新的图书馆参考模式来克服原始模式的局限性。虽然这两种库模式不兼容,但Golang生态系统都支持这两种模式。Golang项目中库引用模式的异构使用导致了许多依赖管理(DM)问题,导致引用不一致甚至构建失败。出于这个问题,我们进行了一项实证研究,以描述DM问题,了解其根本原因,并检查其解决方案。基于我们的研究结果,我们开发了\textsc{Hero},这是一种自动化技术,用于检测DM问题并建议适当的修复解决方案。我们将\textsc{Hero}应用于19,000个受欢迎的Golang项目。结果表明,\textsc{Hero}在DM问题基准测试中达到了98.5%的高检测率,并在2,356个流行的Golang项目中发现了2,422个新的DM问题。我们报告了280个问题,其中181个(64.6%)问题已得到确认,其中160个(88.4%)问题已得到解决或正在解决。几乎所有修复都采用了我们的修复建议。
英文摘要:
Ever since its first release in 2009, the Go programming language (Golang) has been well received by software communities. A major reason for its success is the powerful support of library-based development, where a Golang project can be conveniently built on top of other projects by referencing them as libraries. As Golang evolves, it recommends the use of a new library-referencing mode to overcome the limitations of the original one. While these two library modes are incompatible, both are supported by the Golang ecosystem. The heterogeneous use of library-referencing modes across Golang projects has caused numerous dependency management (DM) issues, incurring reference inconsistencies and even build failures. Motivated by the problem, we conducted an empirical study to characterize the DM issues, understand their root causes, and examine their fixing solutions. Based on our findings, we developed \textsc{Hero}, an automated technique to detect DM issues and suggest proper fixing solutions. We applied \textsc{Hero} to 19,000 popular Golang projects. The results showed that \textsc{Hero} achieved a high detection rate of 98.5\% on a DM issue benchmark and found 2,422 new DM issues in 2,356 popular Golang projects. We reported 280 issues, among which 181 (64.6\%) issues have been confirmed, and 160 of them (88.4\%) have been fixed or are under fixing. Almost all the fixes have adopted our fixing suggestions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。