oficina / home Public

Build Home operator descriptors on Linux ARM64

Paul Campbell pushed by paul@keymail.dev 20a343377ca72f88b0114dcb74f6405b4698f5fe parent d4b2eeb
2 files changed, +2 −1
  • Makefile +1 −0
  • internal/operator/open_linux.go +1 −1

CI passed — run details

diff --git a/Makefile b/Makefile
index 49971a8..7b90e7a 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,7 @@ test-fmt:
test-build:
CGO_ENABLED=0 go build ./...
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ./cmd/home ./cmd/oficina
cd handoff && CGO_ENABLED=0 go build ./...
cd roster && CGO_ENABLED=0 go build ./...
diff --git a/internal/operator/open_linux.go b/internal/operator/open_linux.go
index 08546ae..50e30f3 100644
--- a/internal/operator/open_linux.go
+++ b/internal/operator/open_linux.go
@@ -171,7 +171,7 @@ func descriptors() (map[int]descriptor, error) {
if e != nil {
return nil, ErrUnavailable
}
- out[fd] = descriptor{fileIdentity{uint64(s.Dev), s.Ino}, flags, s.Nlink}
+ out[fd] = descriptor{fileIdentity{uint64(s.Dev), s.Ino}, flags, uint64(s.Nlink)}
}
return out, nil
}