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
Check that the desired packages are indeed available in the expected version as we did in the [previous tutorial](https://nix.dev/tutorials/first-steps/ad-hoc-shell-environments#check-package-version).
But the expected versions in the previous tutorial are different from the versions provided in this tutorial.
Previous tutorial:
[nix-shell:~/environment/nix] git --version
git version 2.38.3
[nix-shell:~/environment/nix] nvim --version | head -1
NVIM v0.8.1
[nix-shell:~/environment/nix] npm --version
8.19.2
This tutorial:
[nix-shell:~/environment/nix]$ git --version
git version 2.42.0
[nix-shell:~/environment/nix]$ nvim --version | head -1
NVIM v0.9.4
[nix-shell:~/environment/nix]$ npm --version
9.8.1
Either the versions should match, or this tutorial should specify the expected versions from the given branch.
The text was updated successfully, but these errors were encountered:
fricklerhandwerk
changed the title
Issue on page /tutorials/first-steps/declarative-shell.html
Package versions do not match across tutorials
Feb 6, 2024
Hah, indeed. That was bound to drift because nix-shell -p will use whatever version of nixpkgs-unstable at installation time, while the declarative shell tutorial specifies a channel branch. The instruction was really meant to generally make sure you got the thing you wanted. In any case, #901 removes that particular line because the tools in the proposed change are trivial.
The guidance says that users should
Check that the desired packages are indeed available in the expected version as we did in the [previous tutorial](https://nix.dev/tutorials/first-steps/ad-hoc-shell-environments#check-package-version).
But the expected versions in the previous tutorial are different from the versions provided in this tutorial.
Previous tutorial:
This tutorial:
Either the versions should match, or this tutorial should specify the expected versions from the given branch.
The text was updated successfully, but these errors were encountered: