Skip to content

Conversation

edolstra
Copy link
Member

@edolstra edolstra commented Sep 9, 2025

Motivation

This adds a version: 1 field to the JSON environment file created by nix develop. Since these are not just internal (they are exposed by nix develop --profile and nix develop <storepath>) and could even be pushed to binary caches etc, it's good to future-proof them.

Also some miscellaneous cleanups like using Store::getFSAccessor().

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the new-cli Relating to the "nix" command label Sep 9, 2025

__dumpEnv() {
printf '{\n'
printf ' "version": 1,\n'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not opposing to have this, but have you have a more concrete motivation for this change i.e. can you elaborate how "could even be pushed to binary caches" would be used? Afaik mkShell is buildable and can be already pushed to a binary cache. You removed the the version 1 from flakes again for the reason that a "v2" would be the first explicit version and before everything is "v1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-cli Relating to the "nix" command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants