-
Notifications
You must be signed in to change notification settings - Fork 306
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 removes itself during garbage collection #1429
Comments
How is (or was) devenv installed on this machine? |
Using the following commands: $ sh <(curl -L https://nixos.org/nix/install)
$ nix-env -iA devenv -f https://github.com/NixOS/nixpkgs/tarball/nixpkgs-unstable |
Strange! A couple of things to check:
|
When I follow all the symlinks of my nix profile. $ nix-store --gc
finding garbage collector roots...
deleting garbage...
deleting '/nix/store/y9hqy0x0rrdhsz2qkfmyrw6l62lgxhvw-user-environment' # <- should this be removed in gc?
deleting '/nix/store/xp5636bdvww7nbcmj9ymrghg6b9skm67-devenv-1.0.8.drv'
deleting '/nix/store/d8z3qwsk69ccqwi5b7wkn27qmkj59vb6-cachix-1.7.4.drv'
deleting '/nix/store/xp6jr77acv1n1y0iadbhm52frarpzw76-dhall-1.42.1.drv'
deleting '/nix/store/szd5h9bnrhxf34p4dxj4f24nwlz7wjwf-cachix-api-1.7.4.drv'
deleting '/nix/store/yqa3dx4jrnapwms6chvd88k3ppwhxcni-swagger2-2.8.9.drv'
deleting '/nix/store/bzc0i86k11ydpclgqcnzcq60y5fag3cw-user-environment.drv'
deleting '/nix/store/m9fb339s5l3631k6mnc52j15lmy42y9y-env-manifest.nix'
deleting '/nix/store/j8qgrzwxaxikw111n0iqbc473jvg9ggc-devenv-1.0.8'
deleting '/nix/store/90rq091pmn9ijrqgablkk0gzvhxi98xh-cachix-1.7.4-bin'
deleting '/nix/store/79yns69mv7y53a3qjl20a2mf6c6128rf-servant-conduit-0.16.drv'
deleting '/nix/store/spr6bawk3gzbpp4cqd3kbdx568qy52n4-servant-client-0.20.drv'
deleting '/nix/store/rg4yx0rnvxji1dspmhqss55ln9bwv240-servant-server-0.20.drv'
deleting '/nix/store/lnaawr42l8ix04m62cd50y8ycirc11ka-wai-app-static-3.1.9.drv'
deleting '/nix/store/dr9gccblgfflaqghpjnrzfvq81r7v7pa-hspec-wai-0.11.1.drv'
deleting '/nix/store/sgyyj2g62ndpk6nrh061v5b714l3j1n8-wai-extra-3.1.15.drv'
deleting '/nix/store/2d8vgsy0qc50bw4zdv5p9qld0w7i5gy1-warp-3.3.31.drv'
deleting '/nix/store/qlz4xkkw15zy02hjldqpyqfqa4fcx9zq-http2-5.0.1.drv'
deleting '/nix/store/1yn3crf6cdwmq2yn3046fx0w668rv24g-cborg-json-0.2.6.0.drv'
... |
So, we've narrowed it down to an issue with Nix. No, the user-environment should not be deleted in this case. That profile link should be a GC root, preventing it from being GC'd.
Normally, this query should return something like |
Assuming it's an installation issue, you could give the alternate installer (or the detsys one from which it's forked) a try. These are far better on all fronts, and particularly so for macOS. I won't have the internet bandwidth to try to replicate this in a fresh VM for at least the next week. IPSWs are large. But it would be good to figure out what went wrong here 🤔 |
Running |
Maybe not related, but what does this mean: Full:
I'd have liked to open a discussion on this, but unless I'm blind, this repository does not have discussions. My shell was not deleted during the gc btw. Only took 11.5s to enter it again. Whereas a fresh shell took minutes to build. |
@MalteMagnussen, this has been fixed in v1.1. It's an innocuous message that Nix is doing a GC run of the entire store, instead of checking just the shell environments we've asked it to check. In other words, this translates to "hang on, this is going to take a while".
We have a pretty active Discord for these things. |
Describe the bug
After running
devenv gc
in a project that has been initialised by devenv. The devenv command is not available anymore and has to be reinstalled.To reproduce
This happens even in a freshly initialised devenv project.
Version
devenv 1.0.8 (aarch64-darwin)
The text was updated successfully, but these errors were encountered: