Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package versions do not match across tutorials #891

Open
aynsof opened this issue Jan 31, 2024 · 1 comment
Open

Package versions do not match across tutorials #891

aynsof opened this issue Jan 31, 2024 · 1 comment

Comments

@aynsof
Copy link

aynsof commented Jan 31, 2024

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:

[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.

@fricklerhandwerk fricklerhandwerk changed the title Issue on page /tutorials/first-steps/declarative-shell.html Package versions do not match across tutorials Feb 6, 2024
@fricklerhandwerk
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants