Open justinTM opened 1 year ago
workaround is to query list of images, but this is fragile.
devbox run build && dive $(docker image ls -q | head -1)
what's hilariously ridiculous too is devbox isn't even using the virtualenv python like it says:
$ (devbox) bash-3.2$ which python
/Users/justin/git/gl/org/group/project/.devbox/nix/profile/default/bin/python
(devbox) bash-3.2$ poetry env info
Virtualenv
Python: 3.11.5
Implementation: CPython
Path: /Users/justin/git/gl/org/group/project/.venv
Executable: /Users/justin/git/gl/org/group/project/.venv/bin/python
Valid: True
workaround for the above is to activate the virtual environment in devbox's shell initialization:
# devbox.json
"shell": {
"init_hook": [
"source parameters/dev.env",
"source parameters/local.env",
"export CI_JOB_TOKEN=$GITLAB_ACCESS_TOKEN",
"aws sts get-caller-identity >& /dev/null || aws configure",
"source $(poetry env info --path)/bin/activate"
],
Hey @justinTM, thanks for reporting this. We recently merged a PR that should provide a partial fix for this issue -- the output from the python+pip plugins will no longer push the messages to stdout, and instead will route them to stderr. This means the messages will still appear when running the script in your shell, but will not clutter up any files or tags that you are creating.
We're discussing a broader fix for the --quiet flag per your feedback as well
sweet thanks for the update John!
been loving devbox! laptop got stolen in SF a week ago and it was painless to get up and running again
Current Behavior (bug) Even with the
--quiet
flag indevbox run build --quiet
, there is still stdout printing, which is messing up subsequent commands:awesome. okay now let's run the image as a container:
oh?
I guess docker doesn't like capitalized JIRA ticket numbers in the tag?
oh my god 🤦♂️🤦♂️🤦♂️
Expected Behavior (fix) quiet means quiet. everything goes to stderr or nothing is printed at all.
Additional context Please include the output of
devbox version -v
and a copy of yourdevbox.json
file.