mirror of
https://github.com/rclone/rclone.git
synced 2026-01-04 17:43:50 +00:00
cmd/version: print os/version, kernel and bitness (#5204)
Related to #5121 Note: OpenBSD is stub yet. This will be fixed after upstream PR gets resolved https://github.com/shirou/gopsutil/pull/993
This commit is contained in:
13
lib/buildinfo/osversion_openbsd.go
Normal file
13
lib/buildinfo/osversion_openbsd.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build openbsd
|
||||
|
||||
package buildinfo
|
||||
|
||||
// gopsutil v3.21.3 fails to build on openbsd:
|
||||
// Error: .../go/pkg/mod/github.com/tklauser/go-sysconf@v0.3.4/sysconf_openbsd.go:22:28: undefined: unix.RLIMIT_NPROC
|
||||
// Error: .../go/pkg/mod/github.com/shirou/gopsutil/v3@v3.21.3/process/process.go:163:15: undefined: pidsWithContext
|
||||
// and so on...
|
||||
|
||||
// GetOSVersion returns OS version, kernel and bitness
|
||||
func GetOSVersion() (osVersion, osKernel string) {
|
||||
return "OpenBSD", ""
|
||||
}
|
||||
Reference in New Issue
Block a user