fstype is broken on non-Linux operating systems
The package internal/helper/fstype has multiple problems on operating systems other than Linux:
- In detect_darwin.go,
statFileSystemTypeerroneously tries to use Linux-specific magic values forsyscall.Statfs_t.Type, which is always 0 on macOS. - On other systems, e.g. FreeBSD or OpenBSD,
statFileSystemTypeis undefined, thus breaking the build and the install process.