-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
go get error "cannot use promoted field BasicHandle.DecodeOptions.RawToString" #9096
Comments
Same here |
same here |
Same |
This error seems to be caused by a certain dependency being updated when running I was, however, successfully able to build a very basic Connect native client with the code, and build steps. package main
import (
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/connect"
"net/http"
)
func main() {
// Create a Consul API client
client, _ := api.NewClient(api.DefaultConfig())
// Create an instance representing this service. "my-service" is the
// name of _this_ service. The service should be cleaned up via Close.
svc, _ := connect.NewService("my-service", client)
defer svc.Close()
// Creating an HTTP server that serves via Connect
server := &http.Server{
Addr: ":8080",
TLSConfig: svc.ServerTLSConfig(),
// ... other standard fields
}
// Serve!
server.ListenAndServeTLS("", "")
} Build steps
As you can see the client successfully compiles and tries to connect to Consul. Note that I did not set up a Consul server as part of this quick test, hence the connection refused errors. Would you folks mind testing and reporting whether the above build steps work for your use case? If not, could you please share a bit more detail on your specific build steps so we can better debug? Thank you. |
The problem is in go-msgpack which has a very strange v1.1.5 release as I explained in hashicorp/serf#620 (comment) I guess I'll open an issue there but I assumed it would be seen as all of those are from hashicorp |
Ah issues are not enabled for go-msgpack. |
There is no
|
The problem was in go-msgpack v1.1.5. I can't understand how it appears in go.mod. Probably I tried to fetch something else previously and didn't clean dependencies. After removing go-msgpack package problem went away. |
Overview of the Issue
On getting package github.com/hashicorp/consul/connect have error.
Reproduction Steps
Operating system and Environment details
Windows env
Ubuntu env
The text was updated successfully, but these errors were encountered: