Allow not attempting to copy closures to ssh-ng remote builders #171

Open
opened 2024-03-24 21:50:58 +00:00 by jade · 3 comments
Owner

When the current user is not trusted on the remote machine, sometimes errors can happen where it fails to copy some store path locally to the remote box (e.g. you built a dependency of it locally), and it seems like there is no obvious way to force Lix to not copy such paths and simply rebuild them remotely instead. This is especially silly when the remote builder has more than capacity to build the paths, but Lix just is foolish about it.

This should simply not be an error imo, and it should just trigger the build.

configs/nix » nix build -L .#system-profile -j0 --builders @/etc/nix/machines-v6
error: cannot add path '/nix/store/s38cbl09s0b021wmgdln01vqj3q6lcb5-boehm-gc-8.2.4' because it lacks a signature by a trusted key
error: builder for '/nix/store/dzp9v2fswgmfx64wml6hdwg65h24djn2-nix-2.18.3-lixpre20240324-f86b965.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/fvhcdfakgrx4dr5yvpi77ydjg1svw41k-flake-profile.drv' failed to build
When the current user is not trusted on the remote machine, sometimes errors can happen where it fails to copy some store path locally to the remote box (e.g. you built a dependency of it locally), and it seems like there is no obvious way to force Lix to not copy such paths and simply rebuild them remotely instead. This is especially silly when the remote builder has more than capacity to build the paths, but Lix just is foolish about it. This should simply not be an error imo, and it should just trigger the build. ``` configs/nix » nix build -L .#system-profile -j0 --builders @/etc/nix/machines-v6 error: cannot add path '/nix/store/s38cbl09s0b021wmgdln01vqj3q6lcb5-boehm-gc-8.2.4' because it lacks a signature by a trusted key error: builder for '/nix/store/dzp9v2fswgmfx64wml6hdwg65h24djn2-nix-2.18.3-lixpre20240324-f86b965.drv' failed with exit code 1 error: 1 dependencies of derivation '/nix/store/fvhcdfakgrx4dr5yvpi77ydjg1svw41k-flake-profile.drv' failed to build ```
jade added the
ux
label 2024-03-24 21:50:58 +00:00
Member

Maybe still warn (just once, not per path) when using this fallback? The main reason I suggest this is that the user might not understand why their path is being built when they were expecting it to be copied and the warning would help clear that up

Maybe still warn (just once, not per path) when using this fallback? The main reason I suggest this is that the user might not understand why their path is being built when they were expecting it to be copied and the warning would help clear that up
Author
Owner

Yep that sounds reasonable.

Yep that sounds reasonable.
Owner

I've hit this repeatedly, glad we're picking this up as an issue, it basically broke building my system configuration for awhile

I've hit this repeatedly, glad we're picking this up as an issue, it basically broke building my system configuration for awhile
jade added the
Area/remote-builds
label 2024-05-23 00:51:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#171
No description provided.