nano-node icon indicating copy to clipboard operation
nano-node copied to clipboard

Submodules

Open steampunkkoala opened this issue 2 years ago • 7 comments

move all submodules into one directory

steampunkkoala avatar Sep 21 '22 03:09 steampunkkoala

Thank you for doing this. We will look into merging this after the upcoming release because now it would be too risky to merge.

dsiganos avatar Sep 21 '22 09:09 dsiganos

Thanks for the suggestion. My opinion is I'd rather name it as "third_party" as they are not submodules, but third-party code.

thsfs avatar Sep 21 '22 11:09 thsfs

He had it as third party and I asked him to rename it to submodules because it seemed more correct. Not all submodules are third party.

dsiganos avatar Sep 21 '22 12:09 dsiganos

it currently has only git submodules, it might be worth having a 3rd party directory as there is folder like CL that is 3rd party that is not a submodule

steampunkkoala avatar Sep 21 '22 12:09 steampunkkoala

in some ways it would be nice to also have all the code under one folder, which is basically the nano folder now. It could basically be renamed to source and everything source code related could be moved under it.

steampunkkoala avatar Sep 21 '22 12:09 steampunkkoala

  1. The node itself is composed by multiple parts we have not been able yet to have them in a fully containerized implementation (in a loose coupling way) that we could then name it as submodule. But understand if we pick the git submodule way to name it.
  2. Having a source folder seems good.

I'd just avoid the Pascal/camelCase pattern as we preferred the snake_case.

thsfs avatar Sep 21 '22 12:09 thsfs

I am use to my projects using camel case, so I default to that, but I understand this project uses snake_case so I will try my best to keep it inline with how things are, and if I accidently use camel case, feel free to point it out so I can fix it.

would like to have something like this

root - ci - docker - source -- third_party --- CL --- ... -- submodules --- cpptoml --- ... -- node --- ...

Although restructuring everything at once is a huge change, better to just move small bits at a time and make sure things are still working correctly

steampunkkoala avatar Sep 21 '22 13:09 steampunkkoala

This would be a good time to finish this. Can we rebase on top of latest develop branch and retest it?

dsiganos avatar Jan 09 '23 16:01 dsiganos

I have redone this pull request with the latest code https://github.com/nanocurrency/nano-node/pull/4062

steampunkkoala avatar Jan 20 '23 10:01 steampunkkoala