tailscale/cmd
Nick Khyl a9dc6e07ad util/codegen, cmd/cloner, cmd/viewer: update codegen.LookupMethod to support alias type nodes
Go 1.23 updates the go/types package to produce Alias type nodes for type aliases, unless disabled with gotypesalias=0.
This new default behavior breaks codegen.LookupMethod, which uses checked type assertions to types.Named and
types.Interface, as only named types and interfaces have methods.

In this PR, we update codegen.LookupMethod to perform method lookup on the right-hand side of the alias declaration
and clearly switch on the supported type nodes types. We also improve support for various edge cases, such as when an alias
is used as a type parameter constraint, and add tests for the LookupMethod function.

Additionally, we update cmd/viewer/tests to include types with aliases used in type fields and generic type constraints.

Updates #13224
Updates #12912

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-08-23 15:26:05 -05:00
..
addlicense
build-webclient
cloner util/codegen, cmd/cloner, cmd/viewer: update codegen.LookupMethod to support alias type nodes 2024-08-23 15:26:05 -05:00
connector-gen
containerboot cmd/containerboot: optionally serve health check endpoint (#12899) 2024-08-14 05:28:29 +01:00
derper go.mod: update to github.com/tailscale/netlink library that doesn't require vishvananda/netlink 2024-08-22 17:35:37 -05:00
derpprobe cmd/derpprobe: use a status page from the prober library 2024-08-06 11:27:59 +01:00
dist
get-authkey
gitops-pusher cmd/gitops-pusher: ignore previous etag if local acls match control (#13068) 2024-08-08 13:23:06 -07:00
hello
k8s-nameserver
k8s-operator go.mod: update to github.com/tailscale/netlink library that doesn't require vishvananda/netlink 2024-08-22 17:35:37 -05:00
mkmanifest
mkpkg
mkversion
nardump
natc
netlogfmt
nginx-auth
pgproxy
printdep
proxy-to-grafana
sniproxy
speedtest
ssh-auth-none-demo
stunc
stund all: switch to and require Go 1.23 2024-08-22 12:31:08 -07:00
stunstamp cmd/stunstamp: refactor connection construction (#13110) 2024-08-12 14:09:45 -07:00
sync-containers
systray cmd/systray: set ipn.NotifyNoPrivateKeys, permit non-operator use 2024-08-23 10:15:49 -07:00
tailscale go.mod: update to github.com/tailscale/netlink library that doesn't require vishvananda/netlink 2024-08-22 17:35:37 -05:00
tailscaled go.mod: update to github.com/tailscale/netlink library that doesn't require vishvananda/netlink 2024-08-22 17:35:37 -05:00
testcontrol
testwrapper
tl-longchain cmd/tl-longchain: tool to re-sign nodes with long rotation signatures 2024-08-21 18:22:22 +01:00
tsconnect
tsidp cmd/tsidp: add funnel support (#12591) 2024-08-08 10:46:45 -04:00
tsshd
tta cmd/tta, tstest/natlab/vnet: remove unneeded port 124 log hack, add log buffer 2024-08-23 12:10:19 -07:00
viewer util/codegen, cmd/cloner, cmd/viewer: update codegen.LookupMethod to support alias type nodes 2024-08-23 15:26:05 -05:00
vnet cmd/vnet: add --blend and --pcap flags 2024-08-23 12:10:19 -07:00
xdpderper