Open gcurtis opened 1 year ago
One situation this can occur in is:
devbox version update
and then open a new tabdevbox global shellenv
presumably from your shellenvHad you just updated devbox?
I didn't update devbox, but I do switch between the dev build and the release build. I don't think I've run any global commands with either of them though. The eval in my ~/.profile
is hardcoded to always use /usr/local/bin/devbox
.
I did verify that running non-global Devbox commands can trigger this. I ran:
$ cd `mktemp -d`
$ devbox init
$ devbox add flake:nixpkgs/nixpkgs-unstable#legacyPackages.aarch64-darwin.go
Then opened a new tab and saw the "Ensuring packages are installed" message. Note that in this case I was using the dev version of devbox, not the release in /usr/local/bin
. It still seems odd that it would affect the global package caching though.
faster shell startup times
I started using devbox as a homebrew replacement (ie only global
commands aside from search
) the other day and immediately noticed lags in new shell tabs, which I believe are primarily related to async updates to my prompt (I'm using fish w/ tide). Running devbox global shellenv --init-hook
from an existing shell isn't super slow, but it's not really fast either: I clocked it at +/-125ms. I hate complaining about 125ms, but it adds up and is definitely notable, esp when one is used to shells starting instantly.
Related to #1350
Current Behavior (bug)
After adding
eval "$(devbox global shellenv)"
to my~/.zprofile
, I sporadically see an "Ensuring packages are installed" message when opening a new terminal window/tab. I'm not entirely sure what causes it, as I haven't run any otherdevbox global
commands in days.Seeing this message and having devbox block me from typing in new tab (even if for a few seconds) becomes really annoying. We should ensure that
devbox global shellenv
consistently finishes quickly.Expected Behavior (fix)
No output from
eval "$(devbox global shellenv)"
and faster shell startup times.Additional context