'<socket>' has unsupported type on copy

In my working directory, a temporary directory is created with a socket inside of it. I cannot change this.

I am not using git and cannot switch to git, so I’m building based on all the contents of the current directory.

Thus nix always tries to copy the socket when I invoke flake commands, and fails because it “has unsupported type”.

Is there any way to work around this for now, other than via Overhaul flake ignore system · Issue #12291 · NixOS/nix · GitHub?

Don’t use flakes, then. Flakes will always get copied to the store first.

2 Likes

Or change some of the unchangeable things. Surely you could symlink that tmpdir to /tmp or such.

2 Likes