tailscale/cmd
Josh Bleecher Snyder 2352690bde cmd/cloner: ensure cloner gets re-run when structs change
If you change a struct and don't re-run cloner,
your Cloner method might be inaccurate, leading to bad things.

To prevent this, write out the struct as it is at the moment that
cloner is caller, and attempt a conversion from that type.
If the struct gets changed in any way, this conversion will fail.

This will yield false positives: If you change a non-pointer field,
you will be forced to re-run cloner, even though the actual generated
code won't change. I think this is an acceptable cost: It is a minor
annoyance, which will prevent real bugs.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-09-04 13:11:21 -07:00
..
cloner cmd/cloner: ensure cloner gets re-run when structs change 2020-09-04 13:11:21 -07:00
derper derp, derp/derphttp: remove one RTT from DERP setup 2020-08-20 14:00:55 -07:00
microproxy cmd/microproxy: add a quick hack for some malformed variables. 2020-08-11 17:22:45 +00:00
mkpkg cmd/mkpkg: support adding empty directories. 2020-05-04 17:57:13 -04:00
tailscale cmd/tailscale/cli: add debug -derp mode 2020-09-03 09:09:23 -07:00
tailscaled cmd/tailscaled: ignore SIGPIPE. 2020-07-31 19:12:45 -07:00
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 2020-03-10 11:03:19 -07:00