a-h / flakegap

Take a Flake and package it for deployment across an airgap.
1 stars 0 forks source link

Inconsistent Nix versions between source and target machine causes code to be downloaded #5

Closed a-h closed 5 days ago

a-h commented 2 months ago

If the version of Nix that runs nix develop or nix build in the target environment is different to the one that was used to export the Nix packages (source environment), the target env will evaulate the Nix expression to a different store path, and try to download all of the dependencies required to build.

Flakegap needs to deal with this... potentially by shipping a specific version of the Nix executable in the export tar.gz file.

It doesn't show up in the flakegap validation process, because the versions of Nix are identical.

a-h commented 5 days ago

Haven't been able to reproduce this.