Skip to content

Conversation

ipince
Copy link
Contributor

@ipince ipince commented Feb 10, 2023

Summary

This brings the computeNixEnv PATH handling to (almost) parity with devbox shell. I might remove the virtenv path after confirming we don't need it.

How was it tested?

Compared devbox shell PATH with the PATH I get in devbox shell or devbox run when I have NIXLESS_SHELL or STRICT_RUN enabled, respectively.

@ipince ipince requested a review from savil February 10, 2023 17:22
// 1. Start with the PATH as defined by nix (through nix print-dev-env).
// 2. TODO: Clean the host PATH of any nix paths.
// 3. Append the cleaned host PATH (tradeoff between reproducibility and ease of use).
// 4. Prepend the devbox-managed nix profile path (which is needed to support devbox add inside shell--can we do without it?).
Copy link
Collaborator

Choose a reason for hiding this comment

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

we do need it for now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But why exactly?

@ipince ipince merged commit d47bbb8 into main Feb 10, 2023
@ipince ipince deleted the rodrigo/nix-env-paths1 branch February 10, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants