Drop the replace usage in go.mod
#11335
Labels
kind/feature
New feature
triage/accepted
The issue was reviewed and is complete enough to start working on it
Description
Description
Currently
kuma
is usingreplace github.com/envoyproxy/go-control-plane v0.12.0 => github.com/envoyproxy/go-control-plane v0.11.2-0.20231010133108-1dfbe83bcebc
in thego.mod
. I know that it's temporary and will be removed when the upstream issue is resolved.But according to Go Modules wikis,
replace
directives in modules other than the main module are ignored when building the main module. It means such replace usage in go.mod cannot be inherited by downstream projects ofkuma
. Downstream projects would depend onv0.12.0
ofgo-control-plane
instead ofv0.11.2-0.20231010133108-1dfbe83bcebc
.Solution
Remove the
replace
directive in go.mod and just declarego-control-plan
asv0.11.2-0.20231010133108-1dfbe83bcebc
. It's better to upgrade the version directly when upstream issue is solved instead of usingreplace
directive.The text was updated successfully, but these errors were encountered: