peroxide
peroxide copied to clipboard
Fails to build on OpenBSD
go build fails:
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:23:17: du.stat.Bfree undefined (type *syscall.Statfs_t has no field or method Bfree)
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:23:40: du.stat.Bsize undefined (type *syscall.Statfs_t has no field or method Bsize)
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:28:17: du.stat.Bavail undefined (type *syscall.Statfs_t has no field or method Bavail)
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:28:41: du.stat.Bsize undefined (type *syscall.Statfs_t has no field or method Bsize)
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:33:24: du.stat.Blocks undefined (type *syscall.Statfs_t has no field or method Blocks)
/home/USER/go/pkg/mod/github.com/ricochet2200/go-disk-usage/[email protected]/diskusage.go:33:49: du.stat.Bsize undefined (type *syscall.Statfs_t has no field or method Bsize)
This is due to go-disk-usage only claiming compatibility with Mac / Win / Linux; so not surprising entirely.
Might it be possible to replace this package?
The code has not been updated in a while. I plan to rebase is in the next couple of weeks against upstream. I'll update this ticket so that you may try again.
Thank you @ljanyst!