-
Notifications
You must be signed in to change notification settings - Fork 9
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
[RFE] Split go-commons in different modules #12
Comments
Yes we can manage the version of the package in a go.mod file. So, the downstream will not see any breaking changes until unless they make changes to their dependency version.
IMHO, go vendoring only inherits the packages that are used as import statements in a project. For example clair-load-test only uses this import statement
Correct me if I am wrong, I don't think this is required. From the answer to the above question, as the downstream only inherits the imported package, changes in other packages should not affect them.
Inline answers for the above questions. |
I believe, a good solution for this problem would be to have unit tests written for this library with > 90% of coverage. That should help us to mitigate most of the issues in development phase itself. Open to other thoughts too. Thank you! |
Regarding multiple modules, getting the configuration for each of them should not be a problem, the biggest issue i see is the versioning of releases, for my part I have not seen a project that does this. I can think on hacks on how to limit the version for only a module using Have you seen this done somewhere @rsevilla87? it would be nice to have an idea on how it has been done before. |
At the moment go-commons is an all-in-one module, this is coming with several caveats.
Cutting a new release affects all the libraries, this is not desired since a project could want to stick on an specific release of a library.
Creates too many dependencies, a project only using one of the libraries will inherit all go-commons dependencies.
Splitting the project in different modules comes also with some downsides, the versioning handling of the different modules will be the most problematic one.
Let's use this issue to discuss about the possibilities
The text was updated successfully, but these errors were encountered: