-
Notifications
You must be signed in to change notification settings - Fork 267
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
Move consts, ipfs, and ipld to pkg #508
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's OK to hold off moving these into a separate repo until we actually run into the problem of circular dependencies. The pkg dir always stirred some controversy around go devs (e.g. see: golang-standards/project-layout#10). I do think it's useful to signal: "hey these modules are specifically meant to be used as a library".
What is the next step with this? My understanding is that a lot of the code that currently uses this will actually be not using it anymore; is that right?
Would also like to hear @Wondertan's opinion on this.
yeah, we'd definitely remove and refactor some code, this is only an intermediate step that will hopefully make the review process for the next steps easier. Those next steps would be to complete #506 and #505. Eventually, I think we'd move things into their own package as discussed in #296 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me but I want @Wondertan to review it before merging as it might collide with some of his plans in celestiaorg/celestia-node#21 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move it!
Also, this doesn't go against my plans. The next step for the da/ipld
would be not to depend on Tendermint types, as done in #427, and moving is not an issue.
* move ipfs and ipld packages to new pkg/da/ * moved consts to pkg * clean up
* Move consts, ipfs, and ipld to pkg (#508) * move ipfs and ipld packages to new pkg/da/ * moved consts to pkg * clean up * go mod tidy
* Move consts, ipfs, and ipld to pkg (#508) * move ipfs and ipld packages to new pkg/da/ * moved consts to pkg * clean up * go mod tidy
* Move consts, ipfs, and ipld to pkg (#508) * move ipfs and ipld packages to new pkg/da/ * moved consts to pkg * clean up * go mod tidy
* Move consts, ipfs, and ipld to pkg (#508) * move ipfs and ipld packages to new pkg/da/ * moved consts to pkg * clean up * go mod tidy
Description
This super simple PR moves the consts, ipld, and ipfs packages to pkg and that's it. I was strict in limiting changes of this PR in hopes of making the review process for this and future PRs simpler.
Part of #506