check / check (push) Canceled after 0s
`go install sneak.berlin/go/sfdupes/cmd/sfdupes@...` found no package: the command was built from `package main` in the repository root. It now lives in `cmd/sfdupes/main.go`, whose one call is `sfdupes.Main()`, and every other Go file moved with `git mv` to `internal/sfdupes`, as `REPO_POLICIES.md` and the Go style guide require. The `Makefile` builds `./cmd/sfdupes` and sets `Version` by its new import path. README "Install" and `TODO.md` give the new paths; the fleet-written "flat layout" divergence is gone. Rule suppressed: each test file carries `//nolint:testpackage`, since the tests call unexported functions throughout. Model: opus-5-5
15 lines
394 B
Go
15 lines
394 B
Go
//go:build darwin
|
|
|
|
package sfdupes
|
|
|
|
import "syscall"
|
|
|
|
// statDev returns the filesystem device ID of st as uint64. Device IDs
|
|
// are opaque; the conversion only needs to be consistent so equality
|
|
// comparisons work, not numerically meaningful.
|
|
//
|
|
//nolint:gosec // int32 device IDs convert consistently; only equality matters
|
|
func statDev(st *syscall.Stat_t) uint64 {
|
|
return uint64(st.Dev)
|
|
}
|