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 was 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.