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

devenv: override temp dirs after nix develop #1654

Merged
merged 1 commit into from
Dec 30, 2024
Merged

devenv: override temp dirs after nix develop #1654

merged 1 commit into from
Dec 30, 2024

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented Dec 30, 2024

nix develop overrides all of the temp directories, which causes problems for module evaluation after the shell, for example devenv up.

The temporary nix-shell-<hash> directory it creates is also unsafe to use as it might be garbage collected at a later point.

The previous solution was to pick up the DEVENV_RUNTIME var, but that is not safe for nested devenvs and does not solve the the tmpdir issue.

Fixes #1620.

`nix develop` overrides all of the temp directories, which causes
problems for module evaluation after the shell, for example `devenv up`.

The temporary `nix-shell-<hash>` directory it creates is also unsafe to
use as it might be garbage collected at a later point.

The previous solution was to pick up the `DEVENV_RUNTIME` var, but that
is not safe for nested devenvs and does not solve the the tmpdir issue.
Copy link

Deploying devenv with  Cloudflare Pages  Cloudflare Pages

Latest commit: b32703d
Status: ✅  Deploy successful!
Preview URL: https://87e9435a.devenv.pages.dev
Branch Preview URL: https://reset-tmpdir.devenv.pages.dev

View logs

@domenkozar domenkozar merged commit 36df08e into main Dec 30, 2024
254 of 277 checks passed
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.

Set custom TMPDIR as the nix-shell folder is gone
2 participants