]> go.fuhry.dev Git - fsnotify.git/commit
A few staticcheck fixes (#539)
authorMartin Tournoij <martin@arp242.net>
Wed, 16 Nov 2022 04:17:00 +0000 (05:17 +0100)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 04:17:00 +0000 (05:17 +0100)
commit131ec3de8e90618ad2b8f1da9e4eabdc1cd1e6b0
treec0553fcf65f23f753073d6439d0cfb8d41bd5c43
parentb2740a5a2e24f3ecd9509728ce5048c74234a12b
A few staticcheck fixes (#539)

This fixes a few small staticcheck issues; turns out that staticcheck
only compiles the files for the current GOOS:
https://staticcheck.io/docs/running-staticcheck/cli/build-tags/

You can run all systems with:

staticcheck -matrix <<EOF
windows: GOOS=windows
linux: GOOS=linux
freebsd: GOOS=freebsd
openbsd: GOOS=openbsd
netbsd: GOOS=netbsd
darwin: GOOS=darwin
illumos: GOOS=illumos
EOF

The CI runner doesn't really support that, but it's little more than a
small wrapper around "go install" with some variables, so just use that
directly instead of the action.
.github/workflows/staticcheck.yml
CHANGELOG.md
backend_kqueue.go
backend_windows.go
internal/freebsd.go
internal/internal.go [new file with mode: 0644]
internal/unix.go