mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-10 16:17:15 +02:00
jsonv2 now returns an error when you marshal or unmarshal a time.Duration without an explicit format flag. This is an intentional, temporary choice until the default [time.Duration] representation is decided (see golang/go#71631). setting.Snapshot can hold time.Duration values inside a map[string]any, so the jsonv2 update breaks marshaling. In this PR, we start using a custom marshaler until that decision is made or golang/go#71664 lets us specify the format explicitly. This fixes `tailscale syspolicy list` failing when KeyExpirationNotice or any other time.Duration policy setting is configured. Fixes #16683 Signed-off-by: Nick Khyl <nickk@tailscale.com> |
||
---|---|---|
.. | ||
errors.go | ||
key.go | ||
origin.go | ||
policy_scope_test.go | ||
policy_scope.go | ||
raw_item_test.go | ||
raw_item.go | ||
setting_test.go | ||
setting.go | ||
snapshot_test.go | ||
snapshot.go | ||
summary.go | ||
types.go |