-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate LightPcapNg to the forked repo #1348
Comments
@tigercosmos I don't think we should use git submodule. Unfortunately submodules are not very convenient because the user needs to remember to fetch them (a simple |
@seladb I think we can just write in the document to use
Do you mean to copy the code from the forked repo? I think it doesn't make the maintaining sync issue easier. |
yes... that's the reason I copied the code in the first place. Enforcing doing |
I disagree with duplicating the code. If we opt to increment the version in the forked repository, it would result in copying all the code into PCPP. This approach seems inefficient. Instead, why not simply increment the commit in the git submodule? Kindly permit me to invite @clementperon and @egecetin to share their opinions on this matter as well. |
To be honest submodule is not a problem for experienced developers they can easily figure out when they even configuring project with CMake and get path does not exist or similar error. But for most inexperienced people it is quite hard to figure out they missed the submodule init (Why does the git clone default do not fetch submodules, they are part of code, so I think also which is a bit annoying). If the concern is only troubles caused by missing the submodule initialization maybe we can add a warning line to CMake to remind people to call And a side note, source code zip downloads from GitHub also do not contain submodules |
PcapPlusPlus is often used by inexperienced developers and one of the things I always cared about is making it as easy to use as possible. I'm a strong believer in ease of use because that's what I expect when getting into a new library or project. So even if it makes our lives (maintainers) a bit harder, it's worth the ease of use for the library's users. If I didn't care about that I'd make it a submodule in the first place, that's the option that makes the most sense from a library maintainer point-of-view. |
@seladb how about this way, we don't copy the forked code into PCPP nor use the git submodule. When the user runs For example:
|
Hmm I'm open to this idea! Can you please create a POC of this to see how it works? |
@seladb sure, revised the issue content. |
Currently we copy LightPcapNg code directly in
seladb/PcapPlusPlus
The code lives at here: PcapPlusPlus/3rdParty/LightPcapNg
We now use the current_commit.git file to record the upstream git commit, but this way is difficult to sync the code from the upstream (basically, manual picking).
Therefore we created a forked LightPcapNg for esiast maintenance.
Here are the steps:
ExternalProject_Add
feature to download the source code fromPcapPlusPlus/LightPcapNg
when doing the first run ofcmake
.PcapPlusPlus/LightPcapNg
back to the upstreamThe text was updated successfully, but these errors were encountered: