简体   繁体   English

如何在我自己的应用程序中包含对库的更改?

[英]How to include changes to library in my own app?

I am using a library which unfortunately has some issues. 我正在使用一个不幸的是有一些问题的图书馆。 Now being new to this whole project stuff I'm not sure how to approach this. 现在是整个项目的新手,我不确定该如何处理。

Let's just say that library is windows-registry. 我们只说库是Windows注册表。 And I have 2 fixes on the code, line 30 and line 50. 我对代码进行了2个修复,第30行和第50行。

What are my possible and best approaches to do this? 我有哪些可能的最佳方法?

(Note, I'm using an app, and my repo does not have the "library" included, and I am well aware that's the whole point of library). (请注意,我正在使用应用程序,我的存储库中未包含“库”,我很清楚这就是库的全部内容)。

Should I make my fix on github and just use that fork as library? 我应该在github上修复我的问题,而只是将该fork用作库吗? Is this the best approach? 这是最好的方法吗?

I think you should fork the project, do the fix - and do a pull-request so everyone can benefit. 我认为您应该分担该项目,进行修复-并进行拉取请求,这样每个人都可以受益。

If the above is not something that the owner wants, just do a fork and use that - or find a different library that better fits your needs. 如果以上内容不是所有者想要的,则只需进行分叉并使用它-或找到更适合您需要的其他库即可。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM