mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-15 01:53:08 -04:00
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 <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
b3d0ebcca3
commit
6fdffd9e5e
@@ -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})
|
client.SetTransport(&http.Transport{DisableKeepAlives: true})
|
||||||
s := &system{
|
s := &system{
|
||||||
t: t,
|
t: t,
|
||||||
@@ -772,36 +772,6 @@ func pathTo(remote, share, name string) string {
|
|||||||
return path.Join(domain, remote, share, name)
|
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 = `<?xml version="1.0" encoding="utf-8" ?>
|
const lockBody = `<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<D:lockinfo xmlns:D='DAV:'>
|
<D:lockinfo xmlns:D='DAV:'>
|
||||||
<D:lockscope><D:exclusive/></D:lockscope>
|
<D:lockscope><D:exclusive/></D:lockscope>
|
||||||
|
|||||||
@@ -169,4 +169,4 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# nix-direnv cache busting line: sha256-PnzuJF0Rz2gG7Ki9KDOlHi2dhGysqLZTKjIaGWGNPjk=
|
# nix-direnv cache busting line: sha256-7synjuzpYZqDwIGVLqN9gmwDFDmWUS7a7rRLUnJIPK4=
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"sri": "sha256-TwIaPmGVHO9ZwdaO/jDStgWGQtKa4smS3er1i5aTNTw="
|
"sri": "sha256-TwIaPmGVHO9ZwdaO/jDStgWGQtKa4smS3er1i5aTNTw="
|
||||||
},
|
},
|
||||||
"vendor": {
|
"vendor": {
|
||||||
"goModSum": "sha256-oT5vCkW7a28PnVTeD8zfYbPe54uGvvfpiicrZFx8p+Y=",
|
"goModSum": "sha256-sUoV/3avVCbUmIrhdmYeQ47noNXWxYAxEEQ5wpsQ7O4=",
|
||||||
"sri": "sha256-PnzuJF0Rz2gG7Ki9KDOlHi2dhGysqLZTKjIaGWGNPjk="
|
"sri": "sha256-7synjuzpYZqDwIGVLqN9gmwDFDmWUS7a7rRLUnJIPK4="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -96,7 +96,7 @@ require (
|
|||||||
github.com/robert-nix/ansihtml v1.0.1
|
github.com/robert-nix/ansihtml v1.0.1
|
||||||
github.com/safchain/ethtool v0.3.0
|
github.com/safchain/ethtool v0.3.0
|
||||||
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
|
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/certstore v0.1.1-0.20260409135935-3638fb84b77d
|
||||||
github.com/tailscale/depaware v0.0.0-20251001183927-9c2ad255ef3f
|
github.com/tailscale/depaware v0.0.0-20251001183927-9c2ad255ef3f
|
||||||
github.com/tailscale/gliderssh v0.3.4-0.20260603235856-90d7dcbcbf38
|
github.com/tailscale/gliderssh v0.3.4-0.20260603235856-90d7dcbcbf38
|
||||||
|
|||||||
4
go.sum
4
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.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 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
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.13.0 h1:OcwSg6IQHOFNdYHn3bPOHwSE8looG8N56Y5xTT1asqQ=
|
||||||
github.com/studio-b12/gowebdav v0.9.0/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE=
|
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 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8=
|
||||||
github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
|
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=
|
github.com/t-yuki/gocover-cobertura v0.0.0-20180217150009-aaee18c8195c h1:+aPplBwWcHBo6q9xrfWdMrT9o4kltkmmvpemgIjep/8=
|
||||||
|
|||||||
Reference in New Issue
Block a user