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

Improve error messages for mis-matched nixpkgs release channel #2510

Open
matthiasbeyer opened this issue Nov 12, 2024 · 2 comments
Open

Improve error messages for mis-matched nixpkgs release channel #2510

matthiasbeyer opened this issue Nov 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@matthiasbeyer
Copy link

matthiasbeyer commented Nov 12, 2024

This line errors for me on main with unstable nixpkgs.

EDIT by maintainers

Asserting that pkgs was built from the expected nixpkgs release/channel may allow us to offer more useful error messages.

We could use lib.trivial.release (etc) to check for a compatible nixpkgs release.

We would probably need to track somewhere in our repo what release this branch is expecting though.

Maybe this could also be used within the docs to detect if the docs relate to stable or unstable nixivm? (see #2455)

@matthiasbeyer
Copy link
Author

Okay, the issue here was that my nixvim flake input followed the unstable channel, but the nixvimModule got the stable channel passed as pkgs.

Maybe there should be a check for this?

@MattSturgeon
Copy link
Member

MattSturgeon commented Nov 12, 2024

Maybe there should be a check for this?

I can rename this issue to something like "assert that the expected nixpkgs release/channel is used"?

EDIT: done

@MattSturgeon MattSturgeon changed the title BUG: attribute 'map' missing Improve error messages for mis-matched nixpkgs release channel Nov 12, 2024
@MattSturgeon MattSturgeon added the enhancement New feature or request label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants