You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line assumes nix 2.8.1 is used during the build, but the installer script at https://nixos.org/nix/install always refers to the latest release of nix, which is currently 2.10.3.
Changing line 103 to nix-env --set-flag priority 10 nix-2.10.3 solves the problem for now, but it will break again as soon as the next version of nix comes out.
I also realized that https://nixos.org/nix/install is redirected to https://releases.nixos.org/nix/nix-2.10.3/install. Although I couldn't find any reference, the website seems to maintain the older versions as well (https://releases.nixos.org/?prefix=nix/).
It might be a good idea to change the address of the installer to pin the version and upgrade both the installer and derivation to prioritize.
Since I'm new to nix, there may be other ways to fix it. Let me know what you think.
The text was updated successfully, but these errors were encountered:
I also realized that https://nixos.org/nix/install is redirected to https://releases.nixos.org/nix/nix-2.10.3/install. Although I couldn't find any reference, the website seems to maintain the older versions as well (https://releases.nixos.org/?prefix=nix/).
It might be a good idea to change the address of the installer to pin the version and upgrade both the installer and derivation to prioritize.
I think you are right, and I just add new docker ARG to specify the version of nix at both these places. It works, but I have to change the version to the latest one manually. I guess there should be a simpler method to specify this and stay tuned.
Hi. Thanks for making this amazing repository available. This is pretty much what I've been looking for and really saved my day.
When I tried to build the Dockerfile, I found that it fails with the following error:
I figured this is due to the version mismatch in Dockerfile and nix installed by the script.
dev-container/Dockerfile
Line 103 in b12e5ec
This line assumes nix 2.8.1 is used during the build, but the installer script at
https://nixos.org/nix/install
always refers to the latest release of nix, which is currently 2.10.3.dev-container/Dockerfile
Line 10 in b12e5ec
Changing line 103 to
nix-env --set-flag priority 10 nix-2.10.3
solves the problem for now, but it will break again as soon as the next version of nix comes out.I also realized that
https://nixos.org/nix/install
is redirected tohttps://releases.nixos.org/nix/nix-2.10.3/install
. Although I couldn't find any reference, the website seems to maintain the older versions as well (https://releases.nixos.org/?prefix=nix/).It might be a good idea to change the address of the installer to pin the version and upgrade both the installer and derivation to prioritize.
Since I'm new to nix, there may be other ways to fix it. Let me know what you think.
The text was updated successfully, but these errors were encountered: