You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
You can get go-git to build on Plan 9 by adding a file:
worktree_plan9.go
// +build plan9packagegitimport (
"syscall""time""gopkg.in/src-d/go-git.v4/plumbing/format/index"
)
funcinit() {
fillSystemInfo=func(e*index.Entry, sysinterface{}) {
// Plan 9 sysi, ok :=sys.(*syscall.Dir)
// Problem because CreatedAt isn't a fielde.CreatedAt=time.Unix(int64(sysi.Atime), 0)
e.Dev=uint32(sysi.Dev)
// Problem because Plan 9 has no Inodee.Inode=sysi.Qid.Vers// Problem because Plan 9 has string UID/GIDe.GID=uint32(0)
e.UID=uint32(0)
}
}
This doesn't fix Plan 9 support fully, however, and is only a placeholder. I'm not sure what the best integration approach is, but sys isn't a Stat_t on Plan 9, it is the syscall.Dir type seen here: https://golang.org/src/syscall/dir_plan9.go
Looking at plumbing/format/index/index.go leads me to believe that some part of the git implementation assumes posix, so I was wondering if there was a clean work around that could be made compatible with the Plan 9 model.
The text was updated successfully, but these errors were encountered:
Not all the tests pass yet but this makes go-git usable on Plan 9.
Please merge this after src-d/go-billy#78.
Fixessrc-d#756
Signed-off-by: Fazlul Shahriar <fshahriar@gmail.com>
fhs
linked a pull request
Dec 25, 2019
that will
close
this issue
You can get go-git to build on Plan 9 by adding a file:
worktree_plan9.go
This doesn't fix Plan 9 support fully, however, and is only a placeholder. I'm not sure what the best integration approach is, but
sys
isn't aStat_t
on Plan 9, it is thesyscall.Dir
type seen here: https://golang.org/src/syscall/dir_plan9.goLooking at plumbing/format/index/index.go leads me to believe that some part of the git implementation assumes posix, so I was wondering if there was a clean work around that could be made compatible with the Plan 9 model.
The text was updated successfully, but these errors were encountered: