Fix godeps

Previous one didn't contain appropriate subpackage deps

Do note that the jklfs deps are experimental, probably
break this out in its own repo eventually.
This commit is contained in:
Olivier Tremblay 2017-10-20 19:06:24 -04:00
parent edc5120921
commit 788e7fd40c
No known key found for this signature in database
GPG key ID: D1C73ACB855E3A6D
2 changed files with 42 additions and 3 deletions

39
Godeps/Godeps.json generated
View file

@ -1,12 +1,47 @@
{ {
"ImportPath": "github.com/avanier/jkl", "ImportPath": "otremblay.com/jkl",
"GoVersion": "go1.8", "GoVersion": "go1.9",
"GodepVersion": "v79", "GodepVersion": "v79",
"Packages": [
"./..."
],
"Deps": [ "Deps": [
{
"ImportPath": "github.com/hanwen/go-fuse/fuse",
"Comment": "v20170619-21-gcf21bc2",
"Rev": "cf21bc21cac77db799fff95d80e717908e6356a5"
},
{
"ImportPath": "github.com/hanwen/go-fuse/fuse/nodefs",
"Comment": "v20170619-21-gcf21bc2",
"Rev": "cf21bc21cac77db799fff95d80e717908e6356a5"
},
{
"ImportPath": "github.com/hanwen/go-fuse/fuse/pathfs",
"Comment": "v20170619-21-gcf21bc2",
"Rev": "cf21bc21cac77db799fff95d80e717908e6356a5"
},
{
"ImportPath": "github.com/hanwen/go-fuse/splice",
"Comment": "v20170619-21-gcf21bc2",
"Rev": "cf21bc21cac77db799fff95d80e717908e6356a5"
},
{ {
"ImportPath": "github.com/joho/godotenv", "ImportPath": "github.com/joho/godotenv",
"Comment": "v1.1-23-gc9360df", "Comment": "v1.1-23-gc9360df",
"Rev": "c9360df4d16dc0e391ea2f28da2d31a9ede2e26f" "Rev": "c9360df4d16dc0e391ea2f28da2d31a9ede2e26f"
},
{
"ImportPath": "golang.org/x/crypto/ssh/terminal",
"Rev": "541b9d50ad47e36efd8fb423e938e59ff1691f68"
},
{
"ImportPath": "golang.org/x/sys/unix",
"Rev": "8dbc5d05d6edcc104950cc299a1ce6641235bc86"
},
{
"ImportPath": "golang.org/x/sys/windows",
"Rev": "8dbc5d05d6edcc104950cc299a1ce6641235bc86"
} }
] ]
} }

View file

@ -32,7 +32,7 @@ func (f *jklfile) String() string {
func (f *jklfile) Write(data []byte, off int64) (uint32, fuse.Status) { func (f *jklfile) Write(data []byte, off int64) (uint32, fuse.Status) {
n, err := f.File.WriteAt(data, off) n, err := f.File.WriteAt(data, off)
if err != nil { if err != nil {
return uint32(0),fuse.EACCES return uint32(0), fuse.EACCES
} }
return uint32(n), fuse.OK return uint32(n), fuse.OK
} }
@ -76,3 +76,7 @@ func (f *jklfile) SetInode(i *nodefs.Inode) {}
func (f *jklfile) Utimens(atime *time.Time, mtime *time.Time) fuse.Status { func (f *jklfile) Utimens(atime *time.Time, mtime *time.Time) fuse.Status {
return fuse.EPERM return fuse.EPERM
} }
func (f *jklfile) Flock(flags int) fuse.Status {
return fuse.ENOSYS
}