shirou
34ac457e15
Merge pull request #1848 from secDre4mer/master
...
Fix issues with GetLastError() usage
5 days 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
7 days 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>
7 days ago
shirou
3ef5d4cb9d
Merge pull request #1847 from mmorel-35/nakedret
...
fix ignore nakedret
2 weeks ago
Matthieu MOREL
6a79b392ac
fix ignore nakedret
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 weeks ago
shirou
a60205c17c
Merge pull request #1852 from shirou/feat/bump_purego_version
...
[darwin]: bump purego veresion to 0.8.3
2 weeks ago
shirou
ecf970423e
[darwin]: bump purego veresion to 0.8.3
2 weeks 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 weeks 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 weeks ago
shirou
15eaecda07
Merge pull request #1846 from mmorel-35/staticcheck/ST1005
...
fix(ST1005): Incorrectly formatted error string
2 weeks ago
Matthieu MOREL
71c74393f2
fix(ST1005): Incorrectly formatted error string
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 weeks ago
shirou
ec85c0b45b
Merge pull request #1842 from mmorel-35/golangci-lint/staticcheck
...
chore: enable staticcheck
2 weeks ago
shirou
d5e33f710b
Merge pull request #1839 from OrbintSoft/remove-wmi
...
Remove wmi for Get physical CPU core count
2 weeks ago
Stefano Balzarotti
f2b0aa5e86
linter
3 weeks ago
Matthieu MOREL
cefed48244
chore: enable staticcheck linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
shirou
3ba33b4651
Merge pull request #1843 from mmorel-35/golangci-lint/ineffassign
...
chore: enable ineffassign linter
3 weeks ago
Matthieu MOREL
6469062ba9
chore: enable ineffassign linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
shirou
af2d6de7aa
Merge pull request #1825 from mmorel-35/golangci-lint/govet
...
chore: enable govet linter
3 weeks ago
Stefano Balzarotti
ab48e6b803
remove context cancellation
1 month ago
Matthieu MOREL
10be661aa4
chore: enable govet linter
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
shirou
3c34181ac9
Merge pull request #1841 from shirou/feat/update_github_action_runners_images
...
fix: update github actions runner images
1 month ago
shirou
c43a933f9c
fix: update github actions runner images
1 month ago
shirou
f9f5620e1e
Merge pull request #1840 from s0ders/refactor/host-info-error-msg
...
refactor: using fmt.Errorf in InfoWithContext
1 month 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
1 month ago
shirou
7d9af6fd99
Merge pull request #1829 from mmorel-35/golangci-lint@v2
...
[chore]: bump golangci-lint to v2.1.1
1 month ago
shirou
61f624bcb8
Merge pull request #1831 from niemp100/win32_cpu_values
...
Fix win32_SystemProcessorPerformanceInformation struct
1 month ago
Stefano Balzarotti
d46c4a822d
use testify
1 month ago
Stefano Balzarotti
b30f1523d8
code review
1 month ago
Matthieu MOREL
15a77650a1
[chore]: bump golangci-lint to v2.1.1
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 month ago
Stefano Balzarotti
00a28a710e
lint
1 month ago
shirou
ef5056a446
Merge pull request #1835 from dvovk/fix_unsafeptr
...
fix nil ptr
1 month ago
Stefano Balzarotti
b4446224fc
fix
1 month ago
Stefano Balzarotti
1ebcd369ab
implement get physical core api
1 month ago
shirou
3608872740
Merge pull request #1838 from NewbieOrange/master
...
[disk][linux] add bcachefs magic
1 month ago
NewbieOrange
212dfbbb39
[disk][linux] add bcachefs magic
1 month ago
Dmytro Vovk
244d63ddfc
fix lint
1 month ago
Dmytro Vovk
1de755d2f2
possible fix
1 month ago
Niklas Empt
6f4ea788d9
Fix win32_SystemProcessorPerformanceInformation struct
2 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.
2 months ago
shirou
fdbdf5188d
[host]: fix potential error on CI test on Windows.
2 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
2 months ago
shirou
6d4c8e567e
[disk][darwin]:rename unused parameter in function to fix lint
2 months ago
shirou
935bb6c8f3
Merge branch 'master' into support-get-disk-serial-number-darwin
2 months ago
shirou
591e789ad8
Merge pull request #1826 from mmorel-35/fix/contextcheck
...
fix: address nolint contextcheck
2 months ago
shirou
7576b6fe42
Merge pull request #1827 from mmorel-35/loong64/golangci
...
fix: enable loong64 architecture in lint workflow
2 months ago
Matthieu MOREL
7166a61915
fix: address `//nolint:contextcheck`
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
shirou
7b14b866f1
Merge pull request #1783 from mmorel-35/revive/unused-parameter
...
chore: enable unused-parameter from revive
2 months ago
shirou
9d29c70c52
Merge pull request #1813 from mmorel-35/gocritic
...
chore: enable gocritic linter
2 months ago
shirou
1bf1d3c3be
Merge pull request #1823 from shirou/dependabot/github_actions/actions/setup-go-5.4.0
...
chore(deps): bump actions/setup-go from 5.3.0 to 5.4.0
2 months ago
shirou
4963f952d7
Merge pull request #1822 from shirou/dependabot/github_actions/actions/upload-artifact-4.6.2
...
chore(deps): bump actions/upload-artifact from 4.6.1 to 4.6.2
2 months ago