upspinfs: move fuse implementation to github.com/presotto/fuse to get macOS support for BigSur and beyond.

Change-Id: I3a0dcfd533215d3a28c46b6f8ec8079c07b043e3
Reviewed-on: https://upspin-review.googlesource.com/c/upspin/+/19680
Reviewed-by: Eric Grosse <grosse@gmail.com>
Reviewed-by: Rob Pike <r@golang.org>
diff --git a/cmd/upspinfs/cache.go b/cmd/upspinfs/cache.go
index 3a8551b..dd2960a 100644
--- a/cmd/upspinfs/cache.go
+++ b/cmd/upspinfs/cache.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !windows
 // +build !windows
 
 package main // import "upspin.io/cmd/upspinfs"
@@ -28,7 +29,7 @@
 	"sync/atomic"
 	"time"
 
-	"bazil.org/fuse"
+	"github.com/presotto/fuse"
 
 	lrucache "upspin.io/cache"
 	"upspin.io/client"
diff --git a/cmd/upspinfs/errors_unix.go b/cmd/upspinfs/errors_unix.go
index 46e1a9c..52bf326 100644
--- a/cmd/upspinfs/errors_unix.go
+++ b/cmd/upspinfs/errors_unix.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !windows
 // +build !windows
 
 package main
@@ -10,7 +11,7 @@
 	"strings"
 	"syscall"
 
-	"bazil.org/fuse"
+	"github.com/presotto/fuse"
 
 	"upspin.io/errors"
 	"upspin.io/log"
diff --git a/cmd/upspinfs/fs.go b/cmd/upspinfs/fs.go
index 9849ea1..fda1a78 100644
--- a/cmd/upspinfs/fs.go
+++ b/cmd/upspinfs/fs.go
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !windows
 // +build !windows
 
 package main
@@ -18,8 +19,8 @@
 
 	gContext "golang.org/x/net/context"
 
-	"bazil.org/fuse"
-	"bazil.org/fuse/fs"
+	"github.com/presotto/fuse"
+	"github.com/presotto/fuse/fs"
 
 	"upspin.io/access"
 	"upspin.io/bind"
diff --git a/cmd/upspinfs/upspinfs_test.go b/cmd/upspinfs/upspinfs_test.go
index 882af84..3e7eb24 100644
--- a/cmd/upspinfs/upspinfs_test.go
+++ b/cmd/upspinfs/upspinfs_test.go
@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 //
 
+//go:build !windows
 // +build !windows
 
 package main
@@ -21,7 +22,7 @@
 	"testing"
 	"time"
 
-	"bazil.org/fuse"
+	"github.com/presotto/fuse"
 
 	"upspin.io/bind"
 	"upspin.io/client"
diff --git a/go.mod b/go.mod
index dc8d6e8..0313d54 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@
 go 1.13
 
 require (
-	bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898
+	github.com/presotto/fuse v0.0.0-20220307001854-fc4b2be69f43
 	github.com/NYTimes/gziphandler v0.0.0-20170916004738-97ae7fbaf816
 	github.com/golang/protobuf v0.0.0-20171021043952-1643683e1b54
 	github.com/kr/pretty v0.1.0 // indirect
diff --git a/go.sum b/go.sum
index ef5186f..07d6759 100644
--- a/go.sum
+++ b/go.sum
@@ -13,11 +13,16 @@
 github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/presotto/fuse v0.0.0-20220306233610-4e9e37a7e508 h1:5xHy5Nd0zf7W3p9aIw1/57Zqzgw/vFev6xavHU5yonY=
+github.com/presotto/fuse v0.0.0-20220307001854-fc4b2be69f43 h1:GcpFHeRTgJkZwzSNDjy4UX8M11xKj0IyvE4fniSKRjA=
+github.com/presotto/fuse v0.0.0-20220307001854-fc4b2be69f43/go.mod h1:vjhV4Wnt7kY0vn360hioikNp2LXu53SYY2Bsp7REtAs=
 github.com/russross/blackfriday v0.0.0-20171011182219-6d1ef893fcb0 h1:hgS5QyP981zzGr3UYaoHb5+fpgK1lHleAOq5znvfJxU=
 github.com/russross/blackfriday v0.0.0-20171011182219-6d1ef893fcb0/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
 github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c h1:u6SKchux2yDvFQnDHS3lPnIRmfVJ5Sxy3ao2SIdysLQ=
+github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
 golang.org/x/crypto v0.0.0-20191117063200-497ca9f6d64f h1:kz4KIr+xcPUsI3VMoqWfPMvtnJ6MGfiVwsWSVzphMO4=
 golang.org/x/crypto v0.0.0-20191117063200-497ca9f6d64f/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
@@ -28,6 +33,7 @@
 golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
 golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=