Open veggiemonk opened 1 week ago
Thanks for your investigation and report. The root cause is that we used the module named github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go
Unfortunately, we have to work around in this way:
go get github.com/envoyproxy/envoy # or, suffix with a specified version
go mod tidy
It could be resolved when we move it into the standard core extension, there won't be a module named github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go.
Thank you for your reply @doujiang24. I'm sure the next person will be grateful to find your solution 👍 It is totally fine for now since it is still in alpha.
Title: Go filters module issue - ambiguous import
Description:
When trying to create a basic filter in Go, there is an issue with Envoy's Go module.
github.com/envoyproxy/envoy main module see pkg.go.dev github.com/envoyproxy/envoy/contrib/golang/filters/http/source/go different module, not sub
Go complains that it is ambiguous.
See the error:
Repro steps:
Workaround
add this replace directive in
go.mod
replace github.com/envoyproxy/envoy => github.com/envoyproxy/envoy v1.30.1-0.20240702172845-dbe8cca3787c
related to https://github.com/golang/go/issues/27899
Admin and Stats Output: N/A
Config: N/A
Logs: N/A
Call Stack: N/A