
In addition to logging `GOOS` and `GOARCH`, also log more info about the system: - Windows: the Windows version and edition. - Linux: distribution, distribution version, and kernel version. - macOS: just "macOS", until we know more about getting info there too.
15 lines
320 B
Go
15 lines
320 B
Go
package sysinfo
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// canSymlink always returns true, as symlinking on non-Windows platforms is not
|
|
// hard.
|
|
func canSymlink() (bool, error) {
|
|
return true, nil
|
|
}
|
|
|
|
func description() (string, error) {
|
|
// TODO: figure out how to get more info on macOS.
|
|
return "macOS", nil
|
|
}
|