-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Proposal: Create packages directory #14143
Comments
🙏 +1 |
How are we defining the split? Here's some thoughts: golang-standards/project-layout#10 |
The downside is increasing import length and maybe breaking some code. Don't have a strong opinion though |
Wont import length stay the same with vanity urls? |
Maybe you're right, not 100% sure. We should do a test case. |
reading the issue, it looks like the conclusion is do what you think is best for your project. There are equally enough pros and cons for both. The reason I was thinking about this is I'm not a fan of massive root directories and with vanity urls they can be imported under what evert we would like |
A golang "standard" was never really created. I personally adhere to the A massive root directory (in my opinion) prevents the repo from having a "flow". Sounds cheesy, but the repo file structure should read like a logically ordered book. |
before making the final call we should make sure Cosmossdk.io/math would still work with a directory path of cosmos-sdk/pkg/math |
looking into this, urls would need to change, so its not worth making this breaking change for users |
no stress, not that serious |
for the record, I think the current layout is better. It's a Go project, so there is no need for root directories like |
In light of many things being spun out into their own go.mod or package, I'd like to propose packages like errors math collections are put into a packages directory to not increase the size of the root directory.
The text was updated successfully, but these errors were encountered: