You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
5 years ago
..
cloner cmd/cloner: ensure cloner gets re-run when structs change 5 years ago
derper derp, derp/derphttp: remove one RTT from DERP setup 5 years ago
microproxy cmd/microproxy: add a quick hack for some malformed variables. 5 years ago
mkpkg cmd/mkpkg: support adding empty directories. 6 years ago
tailscale cmd/tailscale/cli: add debug -derp mode 5 years ago
tailscaled cmd/tailscaled: ignore SIGPIPE. 6 years ago
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 6 years ago