From 6fdffd9e5e043959877732a16e08be164dad2cfa Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 9 Jul 2026 20:10:40 -0700 Subject: [PATCH] go.mod: bump github.com/studio-b12/gowebdav For https://github.com/studio-b12/gowebdav/pull/87 Fixes #20295 Change-Id: I8ae6ff6969c84fcd510f0e15e0487fbfe9f7c821 Signed-off-by: Brad Fitzpatrick --- drive/driveimpl/drive_test.go | 32 +------------------------------- flake.nix | 2 +- flakehashes.json | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- shell.nix | 2 +- 6 files changed, 8 insertions(+), 38 deletions(-) diff --git a/drive/driveimpl/drive_test.go b/drive/driveimpl/drive_test.go index 81788f8d2..4c3426254 100644 --- a/drive/driveimpl/drive_test.go +++ b/drive/driveimpl/drive_test.go @@ -522,7 +522,7 @@ func newSystem(t *testing.T) *system { } }() - client := gowebdav.NewAuthClient(fmt.Sprintf("http://%s", ln.Addr()), &noopAuthorizer{}) + client := gowebdav.NewClient(fmt.Sprintf("http://%s", ln.Addr()), "", "") client.SetTransport(&http.Transport{DisableKeepAlives: true}) s := &system{ t: t, @@ -772,36 +772,6 @@ func pathTo(remote, share, name string) string { return path.Join(domain, remote, share, name) } -// noopAuthorizer implements gowebdav.Authorizer. It does no actual -// authorizing. We use it in place of gowebdav's built-in authorizer in order -// to avoid a race condition in that authorizer. -type noopAuthorizer struct{} - -func (a *noopAuthorizer) NewAuthenticator(body io.Reader) (gowebdav.Authenticator, io.Reader) { - return &noopAuthenticator{}, nil -} - -func (a *noopAuthorizer) AddAuthenticator(key string, fn gowebdav.AuthFactory) { -} - -type noopAuthenticator struct{} - -func (a *noopAuthenticator) Authorize(c *http.Client, rq *http.Request, path string) error { - return nil -} - -func (a *noopAuthenticator) Verify(c *http.Client, rs *http.Response, path string) (redo bool, err error) { - return false, nil -} - -func (a *noopAuthenticator) Clone() gowebdav.Authenticator { - return &noopAuthenticator{} -} - -func (a *noopAuthenticator) Close() error { - return nil -} - const lockBody = ` diff --git a/flake.nix b/flake.nix index 0de602965..7c6c6ead6 100644 --- a/flake.nix +++ b/flake.nix @@ -169,4 +169,4 @@ }); }; } -# nix-direnv cache busting line: sha256-PnzuJF0Rz2gG7Ki9KDOlHi2dhGysqLZTKjIaGWGNPjk= +# nix-direnv cache busting line: sha256-7synjuzpYZqDwIGVLqN9gmwDFDmWUS7a7rRLUnJIPK4= diff --git a/flakehashes.json b/flakehashes.json index 4836e83b1..7ea5130cf 100644 --- a/flakehashes.json +++ b/flakehashes.json @@ -4,7 +4,7 @@ "sri": "sha256-TwIaPmGVHO9ZwdaO/jDStgWGQtKa4smS3er1i5aTNTw=" }, "vendor": { - "goModSum": "sha256-oT5vCkW7a28PnVTeD8zfYbPe54uGvvfpiicrZFx8p+Y=", - "sri": "sha256-PnzuJF0Rz2gG7Ki9KDOlHi2dhGysqLZTKjIaGWGNPjk=" + "goModSum": "sha256-sUoV/3avVCbUmIrhdmYeQ47noNXWxYAxEEQ5wpsQ7O4=", + "sri": "sha256-7synjuzpYZqDwIGVLqN9gmwDFDmWUS7a7rRLUnJIPK4=" } } diff --git a/go.mod b/go.mod index 211594980..a6d6e6f3f 100644 --- a/go.mod +++ b/go.mod @@ -96,7 +96,7 @@ require ( github.com/robert-nix/ansihtml v1.0.1 github.com/safchain/ethtool v0.3.0 github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e - github.com/studio-b12/gowebdav v0.9.0 + github.com/studio-b12/gowebdav v0.13.0 github.com/tailscale/certstore v0.1.1-0.20260409135935-3638fb84b77d github.com/tailscale/depaware v0.0.0-20251001183927-9c2ad255ef3f github.com/tailscale/gliderssh v0.3.4-0.20260603235856-90d7dcbcbf38 diff --git a/go.sum b/go.sum index 9182bdd26..20a068835 100644 --- a/go.sum +++ b/go.sum @@ -1203,8 +1203,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= -github.com/studio-b12/gowebdav v0.9.0 h1:1j1sc9gQnNxbXXM4M/CebPOX4aXYtr7MojAVcN4dHjU= -github.com/studio-b12/gowebdav v0.9.0/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE= +github.com/studio-b12/gowebdav v0.13.0 h1:OcwSg6IQHOFNdYHn3bPOHwSE8looG8N56Y5xTT1asqQ= +github.com/studio-b12/gowebdav v0.13.0/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE= github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8= diff --git a/shell.nix b/shell.nix index a95de04a5..5021d98d7 100644 --- a/shell.nix +++ b/shell.nix @@ -16,4 +16,4 @@ ) { src = ./.; }).shellNix -# nix-direnv cache busting line: sha256-PnzuJF0Rz2gG7Ki9KDOlHi2dhGysqLZTKjIaGWGNPjk= +# nix-direnv cache busting line: sha256-7synjuzpYZqDwIGVLqN9gmwDFDmWUS7a7rRLUnJIPK4=