From 8898c69d0a784fb3a6f5c61f46fc0fc4a3082cf9 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sat, 20 Jun 2026 20:16:51 +0000 Subject: [PATCH] flake: add opentofu and tscli for v2 API tests Provide tofu and tscli in the dev shell, and add the Tailscale Go client the roundtrip tests drive. --- flake.nix | 5 +++++ flakehashes.json | 4 ++-- go.mod | 1 + go.sum | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0513aed7..96786def 100644 --- a/flake.nix +++ b/flake.nix @@ -157,6 +157,11 @@ yq-go ripgrep postgresql + + # External clients exercised by the Tailscale-compatible v2 API + # roundtrip tests (TestAPIv2). Binaries: tofu, tscli. + opentofu + tscli python314Packages.mdformat python314Packages.mdformat-footnote python314Packages.mdformat-frontmatter diff --git a/flakehashes.json b/flakehashes.json index 65bbdacd..ea971a38 100644 --- a/flakehashes.json +++ b/flakehashes.json @@ -1,6 +1,6 @@ { "vendor": { - "goModSum": "sha256-tboE8Nc56tKKOki0JVvR64HcTZJE3ESgLnfdOYQq53Q=", - "sri": "sha256-82WhhyBCnwp0ysrI+n2vHf22cgD29Pjus3GtIOpJonU=" + "goModSum": "sha256-SJml8RXGmb2p0g1nOsHn86FA1hwgd5ZffLSkUj5zek8=", + "sri": "sha256-pjGNuVtgFFzWNq/2cK7a4iyF13AfcHz098nk92a9Ido=" } } diff --git a/go.mod b/go.mod index c6eaad91..41cf5b05 100644 --- a/go.mod +++ b/go.mod @@ -53,6 +53,7 @@ require ( gorm.io/gorm v1.31.1 pgregory.net/rapid v1.3.0 tailscale.com v1.101.0-pre + tailscale.com/client/tailscale/v2 v2.9.0 zombiezen.com/go/postgrestest v1.0.1 ) diff --git a/go.sum b/go.sum index da29c9a4..048eba2c 100644 --- a/go.sum +++ b/go.sum @@ -674,5 +674,7 @@ software.sslmate.com/src/go-pkcs12 v0.4.0 h1:H2g08FrTvSFKUj+D309j1DPfk5APnIdAQAB software.sslmate.com/src/go-pkcs12 v0.4.0/go.mod h1:Qiz0EyvDRJjjxGyUQa2cCNZn/wMyzrRJ/qcDXOQazLI= tailscale.com v1.101.0-pre h1:q1eBWxryj7Lz5fMvi7npSbN/fJ3q6/crvbbfMkx89F8= tailscale.com v1.101.0-pre/go.mod h1:DQ9YBy85DpNlSyeU2XRIWzbAu3RsGp/frv+Khg57meE= +tailscale.com/client/tailscale/v2 v2.9.0 h1:zBZIIeIYXL42qvvile7d29O2DKSr3AfNc2gzd1JCf2o= +tailscale.com/client/tailscale/v2 v2.9.0/go.mod h1:FGjvGT3ThHelqo0gfdK3IN3k1dwNbRzYbQh2XO3C47U= zombiezen.com/go/postgrestest v1.0.1 h1:aXoADQAJmZDU3+xilYVut0pHhgc0sF8ZspPW9gFNwP4= zombiezen.com/go/postgrestest v1.0.1/go.mod h1:marlZezr+k2oSJrvXHnZUs1olHqpE9czlz8ZYkVxliQ=