From 173e5056ef8beaa461c5a6665b75e1d97503c5ac Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 19 Nov 2026 21:14:58 +0100 Subject: go.mod: upgrade to go-fuse v3 (current master 1ffd5bd2bfc64) go-fuse master is now github.com/hanwen/go-fuse/v3. Changes needed: * Change the import path, also in build.bash and version.go, which look up the go-fuse module version. * fuse.Context is gone, and fuse.FromContext() now returns a fuse.Caller value. Caller has the same Owner and Pid fields, so use *fuse.Caller in place of *fuse.Context. * fuse.Status is replaced by syscall.Errno, so ReadResult.Bytes() returns an Errno now. Co-Authored-By: Claude Opus 5.5 --- internal/syscallcompat/asuser_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/syscallcompat/asuser_darwin.go') diff --git a/internal/syscallcompat/asuser_darwin.go b/internal/syscallcompat/asuser_darwin.go index 5da2782..70a1da8 100644 --- a/internal/syscallcompat/asuser_darwin.go +++ b/internal/syscallcompat/asuser_darwin.go @@ -4,14 +4,14 @@ import ( "runtime" "syscall" - "github.com/hanwen/go-fuse/v2/fuse" + "github.com/hanwen/go-fuse/v3/fuse" ) // asUser runs `f()` under the effective uid, gid, groups specified // in `context`. // // If `context` is nil, `f()` is executed directly without switching user id. -func asUser(f func() (int, error), context *fuse.Context) (int, error) { +func asUser(f func() (int, error), context *fuse.Caller) (int, error) { if context == nil { return f() } -- cgit v1.2.3