You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Some devbox commands like `devbox shell` may invoke other devbox
commands. For example,
`devbox shell` generates a shellrc file that calls `devbox log`. This
results in
multiple "update version" notices being printed for the same devbox
command invocation.
To avoid this, we set an env-var after printing the notice, and unset
that env-var
when this devbox command will exit. Note, I keep this env-var inside
vercheck
to maintain encapsulation, instead of putting it in envir package.
I also pushed some of the skipping checks from `root.go` inside
`vercheck` for
(1) better encapsulation (2) adding test cases for them.
## How was it tested?
`go test ./internal/vercheck/...`
For manual testing:
1. `set -gx DEVBOX_LATEST_VERSION 0.5.0`
2. modify binary to `vercheck` to have `currentDevboxVersion = 0.4.8`
and `isDevBuild = false`.
3. run `devbox shell`
BEFORE: multiple update notices would print
AFTER: one notice was printed
0 commit comments