hashicorp / hashicorp/serf

client/rpc_client.go:145:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle

Open
#620 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
609
Avg merge
15h 1m
Merged PRs (30d)
3

Description

During make build, it reporting "client/rpc_client.go:145:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle"

```sh
➜ serf git:(master) ✗ make
awk: can't open file cmd/serf/version.go
source line number 1
Using sudo to setup lo0 interface aliases for testing.
Password:
--> Running go vet
# github.com/hashicorp/serf/client
client/rpc_client.go:145:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
client/rpc_client.go:147:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
# github.com/hashicorp/serf/cmd/serf/command/agent
cmd/serf/command/agent/ipc.go:390:25: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
cmd/serf/command/agent/ipc.go:392:25: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
go test ./...
# github.com/hashicorp/serf/client
client/rpc_client.go:145:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
client/rpc_client.go:147:24: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
# github.com/hashicorp/serf/cmd/serf/command/agent
cmd/serf/command/agent/ipc.go:390:25: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
cmd/serf/command/agent/ipc.go:392:25: cannot use promoted field BasicHandle.DecodeOptions.RawToString in struct literal of type codec.MsgpackHandle
FAIL github.com/hashicorp/serf/cmd/serf/command [build failed]
FAIL github.com/hashicorp/serf/cmd/serf/command/agent [build failed]
ok github.com/hashicorp/serf/coordinate 3.445s
2020/12/21 16:00:18 [WARN] serf: truncated key list response, showing first 18 of 50 keys
--- FAIL: TestSnapshotter_forceCompact (0.40s)
snapshot_test.go:220: bad clock 466
2020/12/21 16:00:50 [INFO] serf: Ignoring previous leave in snapshot
FAIL
FAIL github.com/hashicorp/serf/serf 36.300s
ok github.com/hashicorp/serf/testutil (cached) [no tests to run]
ok github.com/hashicorp/serf/testutil/retry (cached)
make: *** [test] Error 2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.