cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
513 stars 79 forks source link

install-nix.sh: ensure user profile comes before default profile in PATH #130

Closed ncfavier closed 2 years ago

ncfavier commented 2 years ago

Appending to $GITHUB_PATH prepends the path to PATH, so we need to reverse the order to make sure the user-installed nix comes before the action-installed nix.

(I am aware of the install_url trick, but sometimes using nix-env is preferable.)