Commit Graph

2481 Commits (1e5c5ae75b94734162e429574d0d36070ba83f82)
 

Author SHA1 Message Date
shirou a1701dcb73
Merge pull request #1330 from Lomanic/macos-ci-update
Update README with /v3 godoc links and remove deprecated macos-10.15 virtual environment in CI
Lomanic ef5eaa83fe
Merge pull request #1328 from shirou/feature/check-file-contents
fix(host,linux): Check if path exists and is nonempty before reading host files
Lomanic 2553c620ed [ci] Remove deprecated macos-10.15 virtual environment in tests
Ref https://github.com/actions/virtual-environments/issues/5583
Lomanic 5439492ad9 [README] Update godoc links to /v3 and add godocs.io alternative
shirou 839e8b731f fix(common): simplify size check
shirou 422fdd4020
Merge pull request #1329 from shirou/feature/add_github_release_yaml
feat: add github release.yml
shirou 37a0bf3fa1 feat: add github release.yml
shirou 5610fbc5d5 fix(host,linux): Check if path exists and is nonempty before reading host files
shirou 8c479f5153
Merge pull request #1324 from yyt030/master
add neokylin host info on linux
shirou 96fd417faa
Merge pull request #1321 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.0
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
shirou 57a8776eba
Merge pull request #1327 from shirou/feature/amazon-id-cleanup
fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID
shirou aa3f5a5b86
Merge pull request #1326 from shirou/feature/fix-cmdline-cutset
fix(process,linux): remove trailing multiple \x00
shirou 80c890dc4c fix(host,linux): when platform is detected to be 'amazon' cleanup os-release ID
shirou e2ae339eaf fix(process,linux): remove trailing multiple \x00
shirou 46f7642940
Merge pull request #1325 from shirou/feature/fix_cpu_total
fix(cpu): fix cpu total and busy calc
shirou d1cc7d2125 fix(cpu): fix cpu total and busy calc
shirou cb1120d239
Merge pull request #1322 from shirou/feature/net_fix_big_endian
fix(net,linux): fix decodeaddress if Big Endian
yueyt 15354cbdee add neokylin host info on linux
shirou f11e3ba120 fix(net,linux): move IsLittleEndian to internal
shirou e4e6ed2efa fix(net,linux): fix BigEndian test
shirou 8ae3affce0 fix(net,linux): fix decodeaddress if Big Endian
dependabot[bot] acaa52b493
Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
shirou 7a094df3f7
Merge pull request #1318 from shirou/feature/fix_release_action
fix(actions): add write permission to release action
shirou 4f1f5b314d fix(actions): add write permission to release action
shirou 8cbdb096e7
Merge pull request #1317 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.7.5
Bump github.com/stretchr/testify from 1.7.2 to 1.7.5
shirou f34b623ad9
Merge pull request #1314 from chbuescher/master
implemented more AIX no-cgo functions
dependabot[bot] cd5338f84b
Bump github.com/stretchr/testify from 1.7.2 to 1.7.5
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.5.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.5)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
xca1075 3d643b9b73 parse cpu values as float
xca1075 b3ab1561bc more aix nocgo implementations
shirou f9d3b96126
Merge pull request #1311 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.7.2
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
dependabot[bot] 0f1e58450e
Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
shirou ff544cb3e7
Merge pull request #1310 from cipherboy/fix-int8-to-byte
Fix []int8 to []byte in disk/disk_openbsd.go due to x/sys/unix type change
shirou acd1fc00f5
Merge pull request #1313 from shirou/feature/fix_virtual_memory_stat_string
[mem]: fix test
shirou 23f85def9b [mem]: fix test
shirou 5722370c72
Merge pull request #1275 from quanweiZhou/add-meminfo-fields
[mem][linux] added additional meminfo fields
shirou ce948d52cd
Merge pull request #1306 from shirou/feature/change_goversion_dynamic
feat(actions): go-version will be latest two version automatically on CI
shirou e978987d21
Merge pull request #1302 from chbuescher/master
get IOCounters for aix with perfstat
chbuescher 7dd96685cb
Merge branch 'shirou:master' into master
Alexander Scheel 4ad218b552 Update go.mod to clarify newer sys/unix dependency
Updated via:

$ go get -u golang.org/x/sys && go mod tidy

We now require upstream commit bc2c85a on OpenBSD due to type changes.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Alexander Scheel aee8cecfcd Mirror updated x/sys/unix OpenBSD Statfs_t fields
Per change in x/sys/unix, these Statfs_t fields are now converted to
[]byte rather than []int8. Callers with updated x/sys/unix versions will
now see something like:

> Error: ../../../go/pkg/mod/github.com/shirou/gopsutil@v3.21.5+incompatible/disk/disk_openbsd.go:59:53: cannot use stat.F_mntfromname[:] (type []byte) as type []int8 in argument to common.IntToString
> Error: ../../../go/pkg/mod/github.com/shirou/gopsutil@v3.21.5+incompatible/disk/disk_openbsd.go:60:51: cannot use stat.F_mntonname[:] (type []byte) as type []int8 in argument to common.IntToString
> Error: ../../../go/pkg/mod/github.com/shirou/gopsutil@v3.21.5+incompatible/disk/disk_openbsd.go:61:52: cannot use stat.F_fstypename[:] (type []byte) as type []int8 in argument to common.IntToString
> Error: ../../../go/pkg/mod/github.com/shirou/gopsutil@v3.21.5+incompatible/disk/disk_openbsd.go:149:45: cannot use stat.F_fstypename[:] (type []byte) as type []int8 in argument to common.IntToString

It is probably prudent to update to the newer struct definitions as a
result.

See also: https://groups.google.com/g/golang-codereviews/c/bPBR9-4hV6E
See also: https://go-review.googlesource.com/c/sys/+/407195/2
See also: bc2c85ada1

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
xca1075 d4f012c565 fix aix nocgo compile
xca1075 d177019851 fix go build flags for aix/cpu
xca1075 e24e72062b aix: split code, that uses perfstat, to _cgo and _nocgo files
shirou a91ea95c78 feat(actions): go-version will be latest two version automatically on CI
shirou c4a0f4689f
Merge pull request #1305 from shirou/feature/fix_lint_net_linux_test
[net][linux]: fix lint
shirou 0074fab5f5 [net][linux]: fix lint
shirou a7539106da
Merge pull request #1301 from Lomanic/issue1298
[process][windows] Use WaitForSingleObject with a 0 delay in PidExistsWithContext
shirou 09fa2a95e6
Merge pull request #1290 from shirou/dependabot/go_modules/github.com/google/go-cmp-0.5.8
Bump github.com/google/go-cmp from 0.5.7 to 0.5.8
xca1075 ce49e45ed3 get IOCounters for aix with perfstat
Lomanic 7501387fc1 [process][windows] Use WaitForSingleObject with a 0 delay in PidExistsWithContext
Reference https://stackoverflow.com/a/6493793

Fixes #1298