Fix hermetic remote builds and tests #21

Merged
MatthewCroughan merged 1 commit from mc/hermetic-remote-fix into master 2022-06-02 00:00:06 +00:00
MatthewCroughan commented 2022-06-01 23:58:58 +00:00 (Migrated from github.com)

In the previous attempt to add this feature, I had forgotten to add the
new tests to tests/default.nix, which meant I believed the feature
worked when it did not. Additionally, real world testing shows that if
the path does not exist on the remote already, that nix build --store
will not work and will throw the following error: 'path '/nix/store/foo'
is required, but there is no substituter that can build it' To fix this,
I've decided to use nix copy --derivation and then nix-store --realise
on the remote. A lot of refactoring is needed to make this codebase
presentable anyway, so this hack is fine for now, though it is
admittedly an unclean implementation.

https://github.com/MatthewCroughan/nixinate/pull/20

In the previous attempt to add this feature, I had forgotten to add the new tests to tests/default.nix, which meant I believed the feature worked when it did not. Additionally, real world testing shows that if the path does not exist on the remote already, that nix build --store will not work and will throw the following error: 'path '/nix/store/foo' is required, but there is no substituter that can build it' To fix this, I've decided to use nix copy --derivation and then nix-store --realise on the remote. A lot of refactoring is needed to make this codebase presentable anyway, so this hack is fine for now, though it is admittedly an unclean implementation. https://github.com/MatthewCroughan/nixinate/pull/20
Sign in to join this conversation.
No description provided.