Please, fix Remote build for `darwin`
Closed this issue · 6 comments
Just to note.
Currently, HNix-Store-Remote requires linux-namespaces
, so the build falls flat for macOS.
Since HNix CLI uses Remote - that breaks the executable on darwin
.
But, well, the way it goes.
Remote only needs linux-namespaces
for tests so this shouldn't affect anything else. Also io-testsuite
flag is disabled by default but I think this is not picked up by . Nix package doesn't list it in deps either. Cabal build?cabal2nix
Ah, yes. Indeed, you're right.
Remote only needs
linux-namespaces
for tests so this shouldn't affect anything else. Alsoio-testsuite
flag is disabled by defaultbut I think this is not picked up by. Nix package doesn't list it in deps either. Cabal build?cabal2nix
Is that darwin have equivalent to linux-namespaces ?
If it does, I will try to implement so I can dev in darwin.
Remote only needs
linux-namespaces
for tests so this shouldn't affect anything else. Alsoio-testsuite
flag is disabled by defaultbut I think this is not picked up by. Nix package doesn't list it in deps either. Cabal build?cabal2nix
Is that darwin have equivalent to linux-namespaces ? If it does, I will try to implement so I can dev in darwin.
I'm not aware of such equivalent - probably best to use virtual machine or CI as the testsuite creates a temporary nix store and runs privileged nix-daemon as pid 0 in a namespace.
Sure, guess that what I can do.
Currently using docker with vscode. nix-shell, build and hls are fine.
But ownership problem hassles me when trying to run tests in hnix-store-remote.
Try it latter times when I got a virtual machine setup.
[nix-shell:/workspaces/hnix-store]# cabal v2-run "test-suite:hnix-store-remote-tests"
Up to date
error: changing ownership of path '/tmp/test-nix-store-360cdb1d06f295c6/store': Invalid argument
tests/Spec.hs
protocol
store
syncWithGC
syncs with garbage collector: accepted connection from pid 19525, user root (trusted)
error: changing ownership of path '/tmp/test-nix-store-e5f5b6e59ef54a25/store': Invalid argument
OK (0.24s)