Use explicit cross-platform flock rather than impurely referencing it #30

Merged
MatthewCroughan merged 1 commit from mc/flock-explicit into master 2022-10-26 21:58:29 +00:00
MatthewCroughan commented 2022-10-26 21:56:00 +00:00 (Migrated from github.com)

This solves #29

This solves #29
Kranzes commented 2022-10-26 22:19:44 +00:00 (Migrated from github.com)

Could also use flock from util-linux

Could also use flock from util-linux
MatthewCroughan commented 2022-10-26 22:21:39 +00:00 (Migrated from github.com)

@Kranzes Best to avoid locking ourselves into Linux. Right now, technically all of our utilities are not linux specific.

@Kranzes Best to avoid locking ourselves into Linux. Right now, technically all of our utilities are not linux specific.
Kranzes commented 2022-10-26 22:25:06 +00:00 (Migrated from github.com)

Does nixos-rebuild work on darwin?

Does nixos-rebuild work on darwin?
MatthewCroughan commented 2022-10-26 22:38:42 +00:00 (Migrated from github.com)

@Kranzes No, but I was thinking of having multiple backends, which would solve that problem. So the deployment can be implemented by any backend.

@Kranzes No, but I was thinking of having multiple backends, which would solve that problem. So the deployment can be implemented by any backend.
Gerschtli commented 2022-10-27 13:45:38 +00:00 (Migrated from github.com)

I am having trouble with this change because the locally references nix store path of flock is not available on my target machine, resulting in

sudo: /nix/store/wrdk8aqwq7h0lyjglkqgf4x7izd2ymsc-flock-0.2.3/bin/flock: command not found

But I would not be able to call nix store --realise /nix/store/wrdk8aqwq7h0lyjglkqgf4x7izd2ymsc-flock-0.2.3/bin/flock after nix copy with a file lock using flock, some chicken-egg problem here..

Should I create a separate issue for it?

I am having trouble with this change because the locally references nix store path of flock is not available on my target machine, resulting in ``` sudo: /nix/store/wrdk8aqwq7h0lyjglkqgf4x7izd2ymsc-flock-0.2.3/bin/flock: command not found ``` But I would not be able to call `nix store --realise /nix/store/wrdk8aqwq7h0lyjglkqgf4x7izd2ymsc-flock-0.2.3/bin/flock` after `nix copy` with a file lock using `flock`, some chicken-egg problem here.. Should I create a separate issue for it?
MatthewCroughan commented 2022-10-27 13:47:52 +00:00 (Migrated from github.com)

@Gerschtli That's interesting, and it should have been caught by my VM Tests, this indicates my VM Tests are not good enough.

@Gerschtli That's interesting, and it should have been caught by my VM Tests, this indicates my VM Tests are not good enough.
Sign in to join this conversation.
No description provided.