olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.39k stars 1.15k forks source link

Removed Redacted() function from req.url #1635

Open javed2214 opened 2 years ago

javed2214 commented 2 years ago

Removed Redacted() function from from req.URL as it is creating issue while creating the go container. Getting compilation error while building the app. Seems like it doesn't support newer version of Go. My current version is 1.18. This issue is facing by a lot of users. Kindly fix that.

mitar commented 2 years ago

It seems that it exists since 1.15: https://pkg.go.dev/net/url#URL.Redacted

And it compiles for me using Go 1.18 without this PR. So I am not sure why you are getting your error. Maybe you have too old Go version when building the container?