Commit Graph

8 Commits

Author SHA1 Message Date
Tobias Klauser b764840fbf Update github.com/tklauser/go-sysconf to v0.3.9
This fixes the build with older Go versions due to missing GOARCH build
tags.

Release notes: https://github.com/tklauser/go-sysconf/releases/tag/v0.3.9
List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.8...v0.3.9
2021-08-30 16:29:54 +02:00
Tobias Klauser cb29e40ade Update github.com/tklauser/go-sysconf to v0.3.8
This fixes the build of go-sysconf on openbsd/386 and openbsd/arm, see
tklauser/go-sysconf#21 and rclone/rclone#5402 for context.

List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.6...v0.3.8
2021-08-16 10:49:52 +02:00
Tobias Klauser 25b4a07b16 Update github.com/tklauser/go-sysconf to v0.3.6
List of changes: https://github.com/tklauser/go-sysconf/compare/v0.3.4...v0.3.6
2021-06-02 14:11:09 +02:00
Tobias Klauser ee12f66e4d cpu, v3/cpu: use sysconf package instead of exec'ing getconf
Currently, ClocksPerSec is determined by exec'ing getconf in func init,
i.e. on startup of every program importing the package. getconf might
not be present on some systems or is not executable by the current user.
To avoid this hard to control dependency, use the
github.com/tklauser/go-sysconf package which implements sysconf(3)
entirely in Go without cgo. The package is supported on all platforms
currently supported by the cpu and v3/cpu package of gopsutil.
2021-02-19 12:20:10 +01:00
Tobias Klauser d5eecd689d Fix FreeBSD build with latest x/sys/unix
There was a breaking change in upstream golang.org/x/sys/unix which
changed the type of some Statvfs members, see #853. As it looks like
this change won't be reverted, adjust gopsutil to work with it and allow
to build against the latest version of x/sys/unix.
2020-06-22 23:41:01 +02:00
Lomanic e9ecebec5a [disk][freebsd] Work around #853, pin x/sys with dep to the hash just before upstream breaking change 2020-05-31 20:36:42 +02:00
Tobias Klauser a61c905252 Use golang.org/x/windows functions instead of github.com/shirou/w32
All functions used from github.com/shirou/w32 are also available from
golang.org/x/sys/windows which is already used in other places. Convert
the remaining usages to use the functions from x/sys/windows.
2019-11-10 17:34:52 +01:00
shirou 77e5abb6f0
migrate to circleci2 (#587)
* add circleci 2.0 config, which has golang 1.9 image.
2018-09-16 17:40:02 +09:00