Commit Graph

2843 Commits (15412ac7b3ab216de55a0963503c624e69c93a94)
 

Author SHA1 Message Date
Lomanic 15412ac7b3
Merge pull request #1844 from shirou/dependabot/github_actions/golangci/golangci-lint-action-8.0.0
chore(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0
1 month ago
shirou 2c7ae10ae6
Merge pull request #1862 from mmorel-35/containerid
rename containerid arguments to containerID
1 month ago
Matthieu MOREL bcbca49da2 rename containerid arguments to containerID
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
shirou b2c442fcf1
Merge pull request #1860 from shirou/dependabot/go_modules/github.com/ebitengine/purego-0.8.4
chore(deps): bump github.com/ebitengine/purego from 0.8.3 to 0.8.4
1 month ago
dependabot[bot] e3ebde98f9
chore(deps): bump github.com/ebitengine/purego from 0.8.3 to 0.8.4
Bumps [github.com/ebitengine/purego](https://github.com/ebitengine/purego) from 0.8.3 to 0.8.4.
- [Release notes](https://github.com/ebitengine/purego/releases)
- [Commits](https://github.com/ebitengine/purego/compare/v0.8.3...v0.8.4)

---
updated-dependencies:
- dependency-name: github.com/ebitengine/purego
  dependency-version: 0.8.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
1 month ago
shirou 34ac457e15
Merge pull request #1848 from secDre4mer/master
Fix issues with GetLastError() usage
2 months ago
shirou 95eb2c347f
Merge pull request #1851 from shirou/dependabot/github_actions/actions/setup-go-5.5.0
chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0
2 months ago
dependabot[bot] 7597e32653
chore(deps): bump actions/setup-go from 5.4.0 to 5.5.0
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0aaccfd150...d35c59abb0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
shirou 3ef5d4cb9d
Merge pull request #1847 from mmorel-35/nakedret
fix ignore nakedret
2 months ago
Matthieu MOREL 6a79b392ac fix ignore nakedret
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou a60205c17c
Merge pull request #1852 from shirou/feat/bump_purego_version
[darwin]: bump purego veresion to 0.8.3
2 months ago
shirou ecf970423e [darwin]: bump purego veresion to 0.8.3 2 months ago
Max Altgelt 71c5b00525
fix: don't assume GetDriveType returns error
GetDriveType does not set an error for GetLastError, see
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea.
Fix some code that assumed this.
Also prefer windows.GetDriveType to a direct call.
2 months ago
Max Altgelt 7411b4e266
fix: use err from Syscall instead of calling GetLastError
Call() already returns the last error, see
https://pkg.go.dev/syscall?GOOS=windows#Proc.Call.

However, some code called GetLastError() afterwards, which is racy;
if the go routine switches threads between Call() and GetLastError(),
it may return a different error than expected, or possibly nil.
2 months ago
shirou 15eaecda07
Merge pull request #1846 from mmorel-35/staticcheck/ST1005
fix(ST1005): Incorrectly formatted error string
2 months ago
Matthieu MOREL 71c74393f2 fix(ST1005): Incorrectly formatted error string
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou ec85c0b45b
Merge pull request #1842 from mmorel-35/golangci-lint/staticcheck
chore: enable staticcheck
2 months ago
shirou d5e33f710b
Merge pull request #1839 from OrbintSoft/remove-wmi
Remove wmi for Get physical CPU core count
2 months ago
dependabot[bot] 55d6961cbf
chore(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7.0.0 to 8.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](1481404843...4afd733a84)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 months ago
Stefano Balzarotti f2b0aa5e86
linter 2 months ago
Matthieu MOREL cefed48244 chore: enable staticcheck linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 3ba33b4651
Merge pull request #1843 from mmorel-35/golangci-lint/ineffassign
chore: enable ineffassign linter
2 months ago
Matthieu MOREL 6469062ba9 chore: enable ineffassign linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou af2d6de7aa
Merge pull request #1825 from mmorel-35/golangci-lint/govet
chore: enable govet linter
2 months ago
Stefano Balzarotti ab48e6b803
remove context cancellation 2 months ago
Matthieu MOREL 10be661aa4 chore: enable govet linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou 3c34181ac9
Merge pull request #1841 from shirou/feat/update_github_action_runners_images
fix: update github actions runner images
2 months ago
shirou c43a933f9c fix: update github actions runner images 2 months ago
shirou f9f5620e1e
Merge pull request #1840 from s0ders/refactor/host-info-error-msg
refactor: using fmt.Errorf in InfoWithContext
2 months ago
s0ders 0bbc484a68
refactor: using fmt.Errorf on some error returns.
The following brings:
- Refactoring of `InfoWithContext` to wrap errors with `fmt.Errorf` in
  order to add textual context, making error message more helpful for
  the end user.

ref: 1836
3 months ago
shirou 7d9af6fd99
Merge pull request #1829 from mmorel-35/golangci-lint@v2
[chore]: bump golangci-lint to v2.1.1
3 months ago
shirou 61f624bcb8
Merge pull request #1831 from niemp100/win32_cpu_values
Fix win32_SystemProcessorPerformanceInformation struct
3 months ago
Stefano Balzarotti d46c4a822d
use testify 3 months ago
Stefano Balzarotti b30f1523d8
code review 3 months ago
Matthieu MOREL 15a77650a1 [chore]: bump golangci-lint to v2.1.1
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Stefano Balzarotti 00a28a710e
lint 3 months ago
shirou ef5056a446
Merge pull request #1835 from dvovk/fix_unsafeptr
fix nil ptr
3 months ago
Stefano Balzarotti b4446224fc
fix 3 months ago
Stefano Balzarotti 1ebcd369ab
implement get physical core api 3 months ago
shirou 3608872740
Merge pull request #1838 from NewbieOrange/master
[disk][linux] add bcachefs magic
3 months ago
NewbieOrange 212dfbbb39
[disk][linux] add bcachefs magic 3 months ago
Dmytro Vovk 244d63ddfc fix lint 3 months ago
Dmytro Vovk 1de755d2f2 possible fix 3 months ago
Niklas Empt 6f4ea788d9 Fix win32_SystemProcessorPerformanceInformation struct 3 months ago
shirou 1e1ad22d90
Merge pull request #1830 from shirou/feat/try_to_fix_ci_test_fail_host_virtuailization
[host]: fix potential error on CI test on Windows.
3 months ago
shirou fdbdf5188d [host]: fix potential error on CI test on Windows. 3 months ago
shirou 2b55813e08
Merge pull request #1791 from samburba/support-get-disk-serial-number-darwin
add support for get disk serial number on darwin
3 months ago
shirou 6d4c8e567e
[disk][darwin]:rename unused parameter in function to fix lint 3 months ago
shirou 935bb6c8f3
Merge branch 'master' into support-get-disk-serial-number-darwin 3 months ago
shirou 591e789ad8
Merge pull request #1826 from mmorel-35/fix/contextcheck
fix: address nolint contextcheck
3 months ago