-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Share Guard code across repositories #2
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.
We should probably use Shared source packages for this.
Example
https://github.com/aspnet/Extensions/tree/master/src/Shared/src
@JimBobSquarePants that would mean introducing yet another infrastructure element raising where/how +maintenance questions. Submodules are already in place for our stuff, and looking simpler to me (no need to publish on myget etc.). |
If we find it's worth the efforts, we can repackage it later anytime. For now I just want to get rid of those dangerous dependencies for the next beta. |
Those projects don’t get deployed, only their source is shared to the consuming projects so package management is not a factor. We can also enforce standards rules on the shared code. I’d much rather introduce a new submodule here anyway rather than pollute standards, or replace standards with something more aptly named if we are to use it as a general store. |
@JimBobSquarePants I've renamed the repository, and changed Now it needs an extensive review together with (updated) SixLabors/Core#33, before so we can do the rest of the work. I'll change and finalize the remaining PR-s, as soon as this one is merged. |
@antonfirsov I've just pushed an update that uses the most up-to-date Additionally I've reordered the The readme has been updated to reflect those changes. I still think we should use shared projects in the future over standalone |
To me it looks like the "Shared project" is a concept predating the new SDK-style msbuild projects, and could be replaced by a simple We should investigate these practices when we share |
Currently Guard and
DebugGuard
is being shared as an internal ofSixLabors.Core
. This could lead to compatibility issues.I'm suggesting to share the code the code instead with the help of already existing "Standards" submodule. The classes are tested within the bounds of the SixLabors.Core repository.
Parallel PR-s to apply the change in across repositories