-
Notifications
You must be signed in to change notification settings - Fork 517
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
#1074: Add imports of previous root package in new subpackages to avoid dependency upgrade issues. #1075
base: main
Are you sure you want to change the base?
Conversation
…ndency upgrade issues. Those changes are based on https://go.dev/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository Fixes #1074 Signed-off-by: Valerian Roche <[email protected]>
4e25fcd
to
496e667
Compare
fad47d7
to
56f953f
Compare
Also added a fix to |
…ure envoy API sync does not purge files it should not Signed-off-by: Valerian Roche <[email protected]>
56f953f
to
2d17ab9
Compare
@@ -1,6 +1,6 @@ | |||
module github.com/envoyproxy/go-control-plane/contrib | |||
|
|||
go 1.21 | |||
go 1.22.8 |
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.
nit: it would be great if the go.mod version can remain the same for this fix.
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 version is automatically updated due to the added dependency on the root-level go.mod which has been using 1.22.8 for some time.
If a blocker I can see to rollback this change but it is not, per se, part of the module split, as the new version of the main module would have also changed this
go 1.22.8 | ||
|
||
// Used to resolve import issues related to go-control-plane package split (https://github.com/envoyproxy/go-control-plane/issues/1074) | ||
replace github.com/envoyproxy/[email protected] => ../ |
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.
Is there a reason for pinning the version here but not in the go.mod files for examples/dyplomat
and ratelimit
packages?
The module split seems to be breaking when the
get -u
command is used.Using the link referred in this post, this change attempts to address the issue.
While I was able to test this change within one of our repository depending on this repository (for go-control-plane and envoy API), I do not know of a way to guarantee that this will resolve all cases.
Fixes #1074