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/feature
Joe Tsai c299a96624 all: apply consistent imports of "json" packages
This runs:

        go run ./cmd/jsonimports -update -ignore=tempfork/

which applies the following rules:

  * Until the Go standard library formally accepts "encoding/json/v2"
    and "encoding/json/jsontext" into the standard library
    (i.e., they are no longer considered experimental),
    we forbid any code from directly importing those packages.
    Go code should instead import "github.com/go-json-experiment/json"
    and "github.com/go-json-experiment/json/jsontext".
    The latter packages contain aliases to the standard library
    if built on Go 1.25 with the goexperiment.jsonv2 tag specified.

  * Imports of "encoding/json" or "github.com/go-json-experiment/json/v1"
    must be explicitly imported under the package name "jsonv1".
    If both packages need to be imported, then
    the former should be imported under the package name "jsonv1std".

  * Imports of "github.com/go-json-experiment/json"
    must be explicitly imported under the package name "jsonv2".

The latter two rules exist to provide clarity when reading code.
Without them, it is unclear whether "json.Marshal" refers to v1 or v2.
With them, however, it is clear that "jsonv1.Marshal" is calling v1 and
that "jsonv2.Marshal" is calling v2.

Updates tailscale/corp#791

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
4 weeks ago
..
ace feature/ace: make ACE modular 2 months ago
appconnectors all: apply consistent imports of "json" packages 4 weeks ago
buildfeatures cmd/tailscale/cli,feature: add support for identity federation (#17529) 2 months ago
c2n feature/c2n: move answerC2N code + deps out of control/controlclient 2 months ago
capture feature/capture: fix wireshark decoding and add new disco frame types (#16089) 6 months ago
clientupdate all: apply consistent imports of "json" packages 4 weeks ago
condlite/expvar feature/condlite/expvar: add expvar stub package when metrics not needed 2 months ago
condregister cmd/tailscale/cli,feature: add support for identity federation (#17529) 2 months ago
debugportmapper feature/portmapper: make the portmapper & its debugging tools modular 3 months ago
doctor doctor: add ts_omit_doctor support 2 months ago
drive feature/drive: start factoring out Taildrive, add ts_omit_drive build tag 3 months ago
featuretags cmd/tailscale/cli,feature: add support for identity federation (#17529) 2 months ago
identityfederation feature/identityfederation: strip query params on clientID (#17666) 1 month ago
linkspeed feature/linkspeed: move cosmetic tstun netlink code out to modular feature 2 months ago
linuxdnsfight feature/linuxdnsfight: move inotify watching of /etc/resolv.conf out to a feature 3 months ago
oauthkey tsnet,internal/client/tailscale: resolve OAuth into authkeys in tsnet (#17191) 3 months ago
portlist feature/portlist: pull portlist service porting into extension, use eventbus 2 months ago
portmapper wgengine/magicsock: fix js/wasm crash regression loading non-existent portmapper 1 month ago
posture all: apply consistent imports of "json" packages 4 weeks ago
relayserver all: apply consistent imports of "json" packages 4 weeks ago
sdnotify feature/sdnotify: move util/systemd to a modular feature 2 months ago
syspolicy util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
taildrop all: apply consistent imports of "json" packages 4 weeks ago
tap all: use Go 1.20's errors.Join instead of our multierr package 2 months ago
tpm all: apply consistent imports of "json" packages 4 weeks ago
useproxy feature, net/tshttpproxy: pull out support for using proxies as a feature 2 months ago
wakeonlan all: apply consistent imports of "json" packages 4 weeks ago
feature.go wgengine/magicsock: fix js/wasm crash regression loading non-existent portmapper 1 month ago
hooks.go types/persist: add AttestationKey (#17281) 2 months ago
sdnotify.go feature/sdnotify: move util/systemd to a modular feature 2 months ago