Skip to content

[Backport 2.14-maintenance] Check if NIX_LINK_NEW exists instead of checking that NIX_LINK doesn't exist#7934

Merged
edolstra merged 2 commits into2.14-maintenancefrom
backport-7925-to-2.14-maintenance
Mar 1, 2023
Merged

[Backport 2.14-maintenance] Check if NIX_LINK_NEW exists instead of checking that NIX_LINK doesn't exist#7934
edolstra merged 2 commits into2.14-maintenancefrom
backport-7925-to-2.14-maintenance

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 1, 2023

Automatic backport to 2.14-maintenance, triggered by a label in #7925.

cole-h added 2 commits March 1, 2023 22:02
…t exist

For brand new installations, neither NIX_LINK_NEW
(`$XDG_STATE_HOME/nix/profile` or `~/.local/state/nix/profile`), nor
NIX_LINK (`~/.nix-profile`) will exist.

This restores functionality to nix-env, which is relied upon by GitHub
Actions such as https://github.com/cachix/cachix-action and the Nixpkgs
EditorConfig (and other) CI.

(cherry picked from commit 2b801d6)
@cole-h
Copy link
Member

cole-h commented Mar 1, 2023

(FYI, this still included the commit pinning the install-nix-action to 2.13.3 -- I don't know if we want to keep that around, especially since v20 of the action fixes the incompatibility with 2.14.0)

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

Successfully merging this pull request may close these issues.

2 participants