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

Invalid statement (at line 1, column 1) when running devbox shell in wsl #2266

Closed
dexdeadly opened this issue Sep 12, 2024 · 6 comments
Closed
Labels
bug Something isn't working triage Issue needs triage

Comments

@dexdeadly
Copy link

What happened?

I am currently following a youtube course and recently installed devbox in wsl on my machine. It is the basic ubuntu wsl install. When I use the repo from the course and run devbox shell the following occurs.

Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Starting a devbox shell...

Invalid statement (at line 1, column 1)
Creating new venv environment in path: '/mnt/d/DevOps/devops-directive-kubernetes-course/.devbox/virtenv/python312/.venv'
You can activate the virtual environment by running '. $VENV_DIR/bin/activate' (for fish shell, replace '.' with 'source')

Every time I exit and relaunch the devbox shell I get that same line.

Steps to reproduce

  1. clone https://github.com/sidpalas/devops-directive-kubernetes-course
  2. open wsl within vs code
  3. run devbox shell.
  4. receive the error above.

Command

shell

devbox.json

{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.7/.schema/devbox.schema.json",
  "packages": [
    "civo@latest",
    "envsubst@latest",
    "gh@latest",
    "go@latest",
    "go-task@latest",
    "path:gcloud#google-cloud-sdk",
    "gum@latest",
    "jq@latest",
    "k9s@latest",
    "kind@latest",
    "kluctl@latest",
    "ko@latest",
    "kubectl@latest",
    "kubectx@latest",
    "kubernetes-helm@latest",
    "kustomize@latest",
    "oras@latest",
    "nodejs_20@latest",
    "poetry@latest",
    "python312@latest",
    "tilt@latest",
    "yq-go@latest",
    "act@latest",
    "kubent@latest"
  ],
  "shell": {
    "init_hook": [
      "export GOBIN=$(git rev-parse --show-toplevel)/bin",
      "export PATH=$GOBIN:$PATH",
      "go install sigs.k8s.io/[email protected]"
    ],
    "scripts": {
      "test": ["echo \"Error: no test specified\" && exit 1"]
    }
  }
}

Devbox version

0.12.0

Nix version

nix (Nix) 2.18.1

What system does this bug occur on?

Other (please include in the description above)

Debug logs

time=2024-09-11T22:42:05.265-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/mnt/d/DevOps/devops-directive-kubernetes-course
time=2024-09-11T22:42:05.272-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path=""
time=2024-09-11T22:42:05.273-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/mnt/d/DevOps/devops-directive-kubernetes-course
time=2024-09-11T22:42:05.389-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/nix/nix.go:337 msg="nix --version --debug output" out="nix (Nix) 2.18.1\nSystem type: x86_64-linux\nAdditional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux\nFeatures: gc, signed-caches\nSystem configuration file: /etc/nix/nix.conf\nUser configuration files: /home/dex/.config/nix/nix.conf:/etc/xdg/nix/nix.conf\nStore directory: /nix/store\nState directory: /nix/var/nix\nData directory: /nix/store/azvn85cras6xv4z5j85fiy406f24r1q0-nix-2.18.1/share\n"
time=2024-09-11T22:42:05.389-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/nix/command.go:60 msg="nix command starting" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' eval --impure --raw --expr builtins.currentSystem" cmd.path=/home/dex/.nix-profile/bin/nix
time=2024-09-11T22:42:05.422-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/nix/command.go:67 msg="nix command exited" cmd.args="nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' eval --impure --raw --expr builtins.currentSystem" cmd.path=/home/dex/.nix-profile/bin/nix cmd.pid=154006 cmd.code=0 cmd.dur=33.170116ms
time=2024-09-11T22:42:05.423-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:22 msg="finding devbox config" path=""
time=2024-09-11T22:42:05.423-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/dir.go:66 msg="finding devbox config" dir=/mnt/d/DevOps/devops-directive-kubernetes-course
time=2024-09-11T22:42:05.461-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:678 msg="current environment PATH" path="/home/dex/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts/:/mnt/c/Python312/:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin/:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/dotnet/:/mnt/c/WSJT/wsjtx/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/PuTTY/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Users/Dex/AppData/Local/Yarn/bin:/mnt/c/Program Files/Amazon/AWSCLIV2/:/mnt/c/Users/Dex/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/AxisSecurity/:/Docker/host/bin:/mnt/c/Binaries:/mnt/c/Users/Dex/AppData/Local/Yarn/bin:/mnt/c/Users/Dex/AppData/Local/Programs/Python/Python311:/mnt/c/Users/Dex/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/Dex/AppData/Local/Programs/Python/Python311/Scripts:/mnt/c/Users/Dex/AppData/Roaming/npm:/mnt/c/Users/Dex/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Users/Dex/AppData/Local/Programs/Lens/resources/cli/bin:/mnt/c/Users/Dex/AppData/Local/GitHubDesktop/bin:/snap/bin"
time=2024-09-11T22:42:05.473-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:693 msg="nix environment PATH" path=/nix/store/znqwpxy9jlxcgi2ms2hga0ch87bbbr9g-patchelf-0.15.0/bin:/nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin:/nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/bin:/nix/store/nvh3jgs8pqghnsfzbv28004xkigiw8gc-glibc-2.38-23-bin/bin:/nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin:/nix/store/h8d2j0prdf7pnpgyrgkxrrbfwnmxbq6y-binutils-wrapper-2.40/bin:/nix/store/p58l5qmzifl20qmjs3xfpl01f0mqlza2-binutils-2.40/bin:/nix/store/j03hhd3j2qxi8dz98fcsd991ibi6b1j4-civo-1.0.87/bin:/nix/store/8jfd15711zjz6d7lib09j40arfn24z7z-envsubst-1.4.2/bin:/nix/store/p705fy2z5hwpfq18zx3v6772vwmz53yd-gh-2.49.2/bin:/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3/bin:/nix/store/qn4ib3ykjpljfl9vsaqbf32b99xjr25b-go-task-3.37.2/bin:/nix/store/3nh4kwsf4vwrjr7nffmwdair6rp9syy1-gum-0.14.0/bin:/nix/store/f1xhpw3m2155k1y3ylgiaknm2g7g7r50-jq-1.7.1-bin/bin:/nix/store/bxv26x8c5610kzy8mfbg87a793g97haf-k9s-0.32.4/bin:/nix/store/9v6avz3fdajzlbjbvmz0nysmdjhklqq1-kind-0.23.0/bin:/nix/store/pf0w5a4r09g6djw71rycgm2ifgbsm1jy-kluctl-2.25.0/bin:/nix/store/vi97ix6hlnkwsigic4pg8pmcairlh6my-ko-0.15.4/bin:/nix/store/faakmnmx9q8nhi890f4zsls4js4b8pfy-kubectl-1.30.1/bin:/nix/store/7rpri54nfphdranqgn6srz87jrsvflqx-kubectx-0.9.5/bin:/nix/store/w6sfmk0id016mf2c32hi2xn2j0kd9jk0-kubernetes-helm-3.15.0/bin:/nix/store/brk03k57nrv2smfaqnpzb78k0ibrcxfa-kustomize-5.4.1/bin:/nix/store/0ss867aj1w63zzr6bvdkgr2xy5l6h84x-oras-1.1.0/bin:/nix/store/6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2/bin:/nix/store/vi424968j3nx0wq96vagrij3zv4z7hs9-python3.11-poetry-1.8.3/bin:/nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3/bin:/nix/store/8n7f6jcn5zw7xh8vcgiaamxy8aswwvhq-tilt-0.33.10/bin:/nix/store/48yjcqr6i5wgsgfis4ji3xdjjy7vy3qf-yq-go-4.44.1/bin:/nix/store/4d5qhzbrwm9k9yxnwlkwjn8740mh2hlz-act-0.2.63/bin:/nix/store/hxm0jjmfh745pbd7qrbnpza57gv98ac2-kubent-0.7.2/bin:/nix/store/10ad34z8bpim49m32zn3nw47p49ymmg4-google-cloud-sdk-483.0.0/bin:/nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin:/nix/store/qyzfglbrqb5ck0dgljplin2bvc4995w7-findutils-4.9.0/bin:/nix/store/x6y2i213maj6ibcn0qzgg7graif5qcvi-diffutils-3.10/bin:/nix/store/g5p3ky90xa05ggg5szyb0pbbl2vp7n03-gnused-4.9/bin:/nix/store/p2r51wfg9m3ga7pp7avslpfhfa7w5y83-gnugrep-3.11/bin:/nix/store/cmn958i8qym0qvmvydl23fh3bm3fbhl7-gawk-5.2.2/bin:/nix/store/f5qy259g9b4qh0hwz22z5j5bq3m53cpv-gnutar-1.35/bin:/nix/store/kmr52zpw7wazxywqvzgpdx0vnn9prd3v-gzip-1.13/bin:/nix/store/w1mar48lwkavwy64mvj567lwaqnm2l11-bzip2-1.0.8-bin/bin:/nix/store/9dh2csn531by6b1vr9jv85v4k17xwkid-gnumake-4.4.1/bin:/nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/bin:/nix/store/pinwlz7294p37d2sbkdpjildzxii42vv-patch-2.7.6/bin:/nix/store/skrzk0g88jf9rg28labqsyxv7gg357q1-xz-5.4.4-bin/bin:/nix/store/h5pshzq92r2xcv6w1p10cmkar4nyv0xp-file-5.45/bin
time=2024-09-11T22:42:05.473-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:721 msg="PATH after plugins and config" path=/mnt/d/DevOps/devops-directive-kubernetes-course/.devbox/nix/profile/default/bin:/nix/store/znqwpxy9jlxcgi2ms2hga0ch87bbbr9g-patchelf-0.15.0/bin:/nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin:/nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/bin:/nix/store/nvh3jgs8pqghnsfzbv28004xkigiw8gc-glibc-2.38-23-bin/bin:/nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin:/nix/store/h8d2j0prdf7pnpgyrgkxrrbfwnmxbq6y-binutils-wrapper-2.40/bin:/nix/store/p58l5qmzifl20qmjs3xfpl01f0mqlza2-binutils-2.40/bin:/nix/store/j03hhd3j2qxi8dz98fcsd991ibi6b1j4-civo-1.0.87/bin:/nix/store/8jfd15711zjz6d7lib09j40arfn24z7z-envsubst-1.4.2/bin:/nix/store/p705fy2z5hwpfq18zx3v6772vwmz53yd-gh-2.49.2/bin:/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3/bin:/nix/store/qn4ib3ykjpljfl9vsaqbf32b99xjr25b-go-task-3.37.2/bin:/nix/store/3nh4kwsf4vwrjr7nffmwdair6rp9syy1-gum-0.14.0/bin:/nix/store/f1xhpw3m2155k1y3ylgiaknm2g7g7r50-jq-1.7.1-bin/bin:/nix/store/bxv26x8c5610kzy8mfbg87a793g97haf-k9s-0.32.4/bin:/nix/store/9v6avz3fdajzlbjbvmz0nysmdjhklqq1-kind-0.23.0/bin:/nix/store/pf0w5a4r09g6djw71rycgm2ifgbsm1jy-kluctl-2.25.0/bin:/nix/store/vi97ix6hlnkwsigic4pg8pmcairlh6my-ko-0.15.4/bin:/nix/store/faakmnmx9q8nhi890f4zsls4js4b8pfy-kubectl-1.30.1/bin:/nix/store/7rpri54nfphdranqgn6srz87jrsvflqx-kubectx-0.9.5/bin:/nix/store/w6sfmk0id016mf2c32hi2xn2j0kd9jk0-kubernetes-helm-3.15.0/bin:/nix/store/brk03k57nrv2smfaqnpzb78k0ibrcxfa-kustomize-5.4.1/bin:/nix/store/0ss867aj1w63zzr6bvdkgr2xy5l6h84x-oras-1.1.0/bin:/nix/store/6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2/bin:/nix/store/vi424968j3nx0wq96vagrij3zv4z7hs9-python3.11-poetry-1.8.3/bin:/nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3/bin:/nix/store/8n7f6jcn5zw7xh8vcgiaamxy8aswwvhq-tilt-0.33.10/bin:/nix/store/48yjcqr6i5wgsgfis4ji3xdjjy7vy3qf-yq-go-4.44.1/bin:/nix/store/4d5qhzbrwm9k9yxnwlkwjn8740mh2hlz-act-0.2.63/bin:/nix/store/hxm0jjmfh745pbd7qrbnpza57gv98ac2-kubent-0.7.2/bin:/nix/store/10ad34z8bpim49m32zn3nw47p49ymmg4-google-cloud-sdk-483.0.0/bin:/nix/store/qyzfglbrqb5ck0dgljplin2bvc4995w7-findutils-4.9.0/bin:/nix/store/x6y2i213maj6ibcn0qzgg7graif5qcvi-diffutils-3.10/bin:/nix/store/g5p3ky90xa05ggg5szyb0pbbl2vp7n03-gnused-4.9/bin:/nix/store/p2r51wfg9m3ga7pp7avslpfhfa7w5y83-gnugrep-3.11/bin:/nix/store/cmn958i8qym0qvmvydl23fh3bm3fbhl7-gawk-5.2.2/bin:/nix/store/f5qy259g9b4qh0hwz22z5j5bq3m53cpv-gnutar-1.35/bin:/nix/store/kmr52zpw7wazxywqvzgpdx0vnn9prd3v-gzip-1.13/bin:/nix/store/w1mar48lwkavwy64mvj567lwaqnm2l11-bzip2-1.0.8-bin/bin:/nix/store/9dh2csn531by6b1vr9jv85v4k17xwkid-gnumake-4.4.1/bin:/nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/bin:/nix/store/pinwlz7294p37d2sbkdpjildzxii42vv-patch-2.7.6/bin:/nix/store/skrzk0g88jf9rg28labqsyxv7gg357q1-xz-5.4.4-bin/bin:/nix/store/h5pshzq92r2xcv6w1p10cmkar4nyv0xp-file-5.45/bin
time=2024-09-11T22:42:05.473-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/j03hhd3j2qxi8dz98fcsd991ibi6b1j4-civo-1.0.87/bin input=/nix/store/j03hhd3j2qxi8dz98fcsd991ibi6b1j4-civo-1.0.87
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/8jfd15711zjz6d7lib09j40arfn24z7z-envsubst-1.4.2/bin input=/nix/store/8jfd15711zjz6d7lib09j40arfn24z7z-envsubst-1.4.2
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/p705fy2z5hwpfq18zx3v6772vwmz53yd-gh-2.49.2/bin input=/nix/store/p705fy2z5hwpfq18zx3v6772vwmz53yd-gh-2.49.2
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3/bin input=/nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/qn4ib3ykjpljfl9vsaqbf32b99xjr25b-go-task-3.37.2/bin input=/nix/store/qn4ib3ykjpljfl9vsaqbf32b99xjr25b-go-task-3.37.2
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/3nh4kwsf4vwrjr7nffmwdair6rp9syy1-gum-0.14.0/bin input=/nix/store/3nh4kwsf4vwrjr7nffmwdair6rp9syy1-gum-0.14.0
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/f1xhpw3m2155k1y3ylgiaknm2g7g7r50-jq-1.7.1-bin/bin input=/nix/store/f1xhpw3m2155k1y3ylgiaknm2g7g7r50-jq-1.7.1-bin
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/bxv26x8c5610kzy8mfbg87a793g97haf-k9s-0.32.4/bin input=/nix/store/bxv26x8c5610kzy8mfbg87a793g97haf-k9s-0.32.4
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/9v6avz3fdajzlbjbvmz0nysmdjhklqq1-kind-0.23.0/bin input=/nix/store/9v6avz3fdajzlbjbvmz0nysmdjhklqq1-kind-0.23.0
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/pf0w5a4r09g6djw71rycgm2ifgbsm1jy-kluctl-2.25.0/bin input=/nix/store/pf0w5a4r09g6djw71rycgm2ifgbsm1jy-kluctl-2.25.0
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/vi97ix6hlnkwsigic4pg8pmcairlh6my-ko-0.15.4/bin input=/nix/store/vi97ix6hlnkwsigic4pg8pmcairlh6my-ko-0.15.4
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/faakmnmx9q8nhi890f4zsls4js4b8pfy-kubectl-1.30.1/bin input=/nix/store/faakmnmx9q8nhi890f4zsls4js4b8pfy-kubectl-1.30.1
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/7rpri54nfphdranqgn6srz87jrsvflqx-kubectx-0.9.5/bin input=/nix/store/7rpri54nfphdranqgn6srz87jrsvflqx-kubectx-0.9.5
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/w6sfmk0id016mf2c32hi2xn2j0kd9jk0-kubernetes-helm-3.15.0/bin input=/nix/store/w6sfmk0id016mf2c32hi2xn2j0kd9jk0-kubernetes-helm-3.15.0
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/brk03k57nrv2smfaqnpzb78k0ibrcxfa-kustomize-5.4.1/bin input=/nix/store/brk03k57nrv2smfaqnpzb78k0ibrcxfa-kustomize-5.4.1
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/0ss867aj1w63zzr6bvdkgr2xy5l6h84x-oras-1.1.0/bin input=/nix/store/0ss867aj1w63zzr6bvdkgr2xy5l6h84x-oras-1.1.0
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2/bin input=/nix/store/6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/vi424968j3nx0wq96vagrij3zv4z7hs9-python3.11-poetry-1.8.3/bin input=/nix/store/vi424968j3nx0wq96vagrij3zv4z7hs9-python3.11-poetry-1.8.3
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3/bin input=/nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/8n7f6jcn5zw7xh8vcgiaamxy8aswwvhq-tilt-0.33.10/bin input=/nix/store/8n7f6jcn5zw7xh8vcgiaamxy8aswwvhq-tilt-0.33.10
time=2024-09-11T22:42:05.474-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/48yjcqr6i5wgsgfis4ji3xdjjy7vy3qf-yq-go-4.44.1/bin input=/nix/store/48yjcqr6i5wgsgfis4ji3xdjjy7vy3qf-yq-go-4.44.1
time=2024-09-11T22:42:05.475-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/4d5qhzbrwm9k9yxnwlkwjn8740mh2hlz-act-0.2.63/bin input=/nix/store/4d5qhzbrwm9k9yxnwlkwjn8740mh2hlz-act-0.2.63
time=2024-09-11T22:42:05.475-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/hxm0jjmfh745pbd7qrbnpza57gv98ac2-kubent-0.7.2/bin input=/nix/store/hxm0jjmfh745pbd7qrbnpza57gv98ac2-kubent-0.7.2
time=2024-09-11T22:42:05.475-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:739 msg="filtering out buildInput from PATH" path=/nix/store/10ad34z8bpim49m32zn3nw47p49ymmg4-google-cloud-sdk-483.0.0/bin input=/nix/store/10ad34z8bpim49m32zn3nw47p49ymmg4-google-cloud-sdk-483.0.0
time=2024-09-11T22:42:05.475-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:745 msg="PATH after filtering buildInputs" inputs="[/nix/store/j03hhd3j2qxi8dz98fcsd991ibi6b1j4-civo-1.0.87 /nix/store/8jfd15711zjz6d7lib09j40arfn24z7z-envsubst-1.4.2 /nix/store/p705fy2z5hwpfq18zx3v6772vwmz53yd-gh-2.49.2 /nix/store/00mg4vlhzmm7gi9bd5v5ydjlgrywpc3n-go-1.22.3 /nix/store/qn4ib3ykjpljfl9vsaqbf32b99xjr25b-go-task-3.37.2 /nix/store/3nh4kwsf4vwrjr7nffmwdair6rp9syy1-gum-0.14.0 /nix/store/f1xhpw3m2155k1y3ylgiaknm2g7g7r50-jq-1.7.1-bin /nix/store/2ab43a1k12sb9l5qf77vd9rlj3k3qap1-jq-1.7.1-man /nix/store/bxv26x8c5610kzy8mfbg87a793g97haf-k9s-0.32.4 /nix/store/9v6avz3fdajzlbjbvmz0nysmdjhklqq1-kind-0.23.0 /nix/store/pf0w5a4r09g6djw71rycgm2ifgbsm1jy-kluctl-2.25.0 /nix/store/vi97ix6hlnkwsigic4pg8pmcairlh6my-ko-0.15.4 /nix/store/faakmnmx9q8nhi890f4zsls4js4b8pfy-kubectl-1.30.1 /nix/store/aiszaxdqhn41rfb3y7z2853il1qp01sc-kubectl-1.30.1-man /nix/store/7rpri54nfphdranqgn6srz87jrsvflqx-kubectx-0.9.5 /nix/store/w6sfmk0id016mf2c32hi2xn2j0kd9jk0-kubernetes-helm-3.15.0 /nix/store/brk03k57nrv2smfaqnpzb78k0ibrcxfa-kustomize-5.4.1 /nix/store/0ss867aj1w63zzr6bvdkgr2xy5l6h84x-oras-1.1.0 /nix/store/6g9n96qf1yx139xklnmy3v4xhjvjgsji-nodejs-20.12.2 /nix/store/vi424968j3nx0wq96vagrij3zv4z7hs9-python3.11-poetry-1.8.3 /nix/store/c7ycrgwv039nqglbif98yggx211sdbcl-python3-3.12.3 /nix/store/8n7f6jcn5zw7xh8vcgiaamxy8aswwvhq-tilt-0.33.10 /nix/store/48yjcqr6i5wgsgfis4ji3xdjjy7vy3qf-yq-go-4.44.1 /nix/store/4d5qhzbrwm9k9yxnwlkwjn8740mh2hlz-act-0.2.63 /nix/store/hxm0jjmfh745pbd7qrbnpza57gv98ac2-kubent-0.7.2 /nix/store/10ad34z8bpim49m32zn3nw47p49ymmg4-google-cloud-sdk-483.0.0]" path=/mnt/d/DevOps/devops-directive-kubernetes-course/.devbox/nix/profile/default/bin:/nix/store/znqwpxy9jlxcgi2ms2hga0ch87bbbr9g-patchelf-0.15.0/bin:/nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin:/nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/bin:/nix/store/nvh3jgs8pqghnsfzbv28004xkigiw8gc-glibc-2.38-23-bin/bin:/nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin:/nix/store/h8d2j0prdf7pnpgyrgkxrrbfwnmxbq6y-binutils-wrapper-2.40/bin:/nix/store/p58l5qmzifl20qmjs3xfpl01f0mqlza2-binutils-2.40/bin:/nix/store/qyzfglbrqb5ck0dgljplin2bvc4995w7-findutils-4.9.0/bin:/nix/store/x6y2i213maj6ibcn0qzgg7graif5qcvi-diffutils-3.10/bin:/nix/store/g5p3ky90xa05ggg5szyb0pbbl2vp7n03-gnused-4.9/bin:/nix/store/p2r51wfg9m3ga7pp7avslpfhfa7w5y83-gnugrep-3.11/bin:/nix/store/cmn958i8qym0qvmvydl23fh3bm3fbhl7-gawk-5.2.2/bin:/nix/store/f5qy259g9b4qh0hwz22z5j5bq3m53cpv-gnutar-1.35/bin:/nix/store/kmr52zpw7wazxywqvzgpdx0vnn9prd3v-gzip-1.13/bin:/nix/store/w1mar48lwkavwy64mvj567lwaqnm2l11-bzip2-1.0.8-bin/bin:/nix/store/9dh2csn531by6b1vr9jv85v4k17xwkid-gnumake-4.4.1/bin:/nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/bin:/nix/store/pinwlz7294p37d2sbkdpjildzxii42vv-patch-2.7.6/bin:/nix/store/skrzk0g88jf9rg28labqsyxv7gg357q1-xz-5.4.4-bin/bin:/nix/store/h5pshzq92r2xcv6w1p10cmkar4nyv0xp-file-5.45/bin
time=2024-09-11T22:42:05.494-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:764 msg="new path stack is" path_stack=DEVBOX_NIX_ENV_PATH_8081b459e788761d7cfd18a66b5bff8326ee4a97cec7ecb364740aa5b43fe92d:DEVBOX_INIT_PATH
time=2024-09-11T22:42:05.494-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/devbox.go:766 msg="computed environment PATH" path="/mnt/d/DevOps/devops-directive-kubernetes-course/.devbox/nix/profile/default/bin:/nix/store/znqwpxy9jlxcgi2ms2hga0ch87bbbr9g-patchelf-0.15.0/bin:/nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin:/nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/bin:/nix/store/nvh3jgs8pqghnsfzbv28004xkigiw8gc-glibc-2.38-23-bin/bin:/nix/store/vwkvhj69z4qqgmpa2lwm97kabf12p26r-coreutils-9.3/bin:/nix/store/h8d2j0prdf7pnpgyrgkxrrbfwnmxbq6y-binutils-wrapper-2.40/bin:/nix/store/p58l5qmzifl20qmjs3xfpl01f0mqlza2-binutils-2.40/bin:/nix/store/qyzfglbrqb5ck0dgljplin2bvc4995w7-findutils-4.9.0/bin:/nix/store/x6y2i213maj6ibcn0qzgg7graif5qcvi-diffutils-3.10/bin:/nix/store/g5p3ky90xa05ggg5szyb0pbbl2vp7n03-gnused-4.9/bin:/nix/store/p2r51wfg9m3ga7pp7avslpfhfa7w5y83-gnugrep-3.11/bin:/nix/store/cmn958i8qym0qvmvydl23fh3bm3fbhl7-gawk-5.2.2/bin:/nix/store/f5qy259g9b4qh0hwz22z5j5bq3m53cpv-gnutar-1.35/bin:/nix/store/kmr52zpw7wazxywqvzgpdx0vnn9prd3v-gzip-1.13/bin:/nix/store/w1mar48lwkavwy64mvj567lwaqnm2l11-bzip2-1.0.8-bin/bin:/nix/store/9dh2csn531by6b1vr9jv85v4k17xwkid-gnumake-4.4.1/bin:/nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/bin:/nix/store/pinwlz7294p37d2sbkdpjildzxii42vv-patch-2.7.6/bin:/nix/store/skrzk0g88jf9rg28labqsyxv7gg357q1-xz-5.4.4-bin/bin:/nix/store/h5pshzq92r2xcv6w1p10cmkar4nyv0xp-file-5.45/bin:/mnt/d/DevOps/devops-directive-kubernetes-course/.devbox/virtenv/runx/bin:/home/dex/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python312/Scripts:/mnt/c/Python312:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/dotnet:/mnt/c/WSJT/wsjtx/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/PuTTY:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Users/Dex/AppData/Local/Yarn/bin:/mnt/c/Program Files/Amazon/AWSCLIV2:/mnt/c/Users/Dex/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/AxisSecurity:/Docker/host/bin:/mnt/c/Binaries:/mnt/c/Users/Dex/AppData/Local/Programs/Python/Python311:/mnt/c/Users/Dex/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/Dex/AppData/Local/Programs/Python/Python311/Scripts:/mnt/c/Users/Dex/AppData/Roaming/npm:/mnt/c/Users/Dex/AppData/Local/Programs/Lens/resources/cli/bin:/mnt/c/Users/Dex/AppData/Local/GitHubDesktop/bin:/snap/bin"
Starting a devbox shell...
time=2024-09-11T22:42:05.500-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/shell.go:102 msg="using SHELL env var for shell binary path" shell=/bin/bash
time=2024-09-11T22:42:05.500-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/shell.go:86 msg="detected user shell" shell=/bin/bash initrc=/home/dex/.bashrc
time=2024-09-11T22:42:05.501-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/shell.go:346 msg="wrote devbox shellrc" path=/tmp/devbox1828863046/.bashrc
time=2024-09-11T22:42:05.501-04:00 level=DEBUG source=go.jetpack.io/devbox/internal/devbox/shell.go:247 msg="Executing shell %s with args: %v" /bin/bash="[/bin/bash --rcfile /tmp/devbox1828863046/.bashrc]"

Invalid statement (at line 1, column 1)```
@dexdeadly dexdeadly added bug Something isn't working triage Issue needs triage labels Sep 12, 2024
@savil
Copy link
Collaborator

savil commented Sep 12, 2024

@dexdeadly my first guess is that something in your host-shell's startup file is tripping up devbox (I'm deducing from the output your host shell is bash, and the startup file would be .bashrc)

Does running devbox run -- "echo hello" work? With devbox run we set up the Devbox environment but use sh shell and don't include your host-shell's startup files. If that works, it would support my theory. If not, then something else is wrong.

@dexdeadly
Copy link
Author

dexdeadly commented Sep 12, 2024

dex@coulson:/mnt/d/DevOps/devops-directive-kubernetes-course$ devbox run -- "echo hello"

Invalid statement (at line 1, column 1)
Error: error running script "echo hello" in Devbox: exit status 1

This is a windows 11 machine with the Ubuntu WSL2 image

@Lagoja
Copy link
Contributor

Lagoja commented Sep 12, 2024

I was unable to repro this on a fresh install of Devbox on WSL, is it possible that something in your bashrc could be causing this?

@dexdeadly
Copy link
Author

I haven't made any additions or changes. Which image did you use? I tried Ubuntu and Ubuntu-24.10. My bashrc I didn't make any changes to. The first few lines are

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

@savil
Copy link
Collaborator

savil commented Sep 13, 2024

@Lagoja if devbox run is failing, then the bashrc won't be the problem. We don't use the bashrc on devbox run since it runs in a sh shell

@savil
Copy link
Collaborator

savil commented Sep 23, 2024

@dexdeadly I'm going to close this as we couldn't repro it. Feel free to re-open if you encounter this again!

@savil savil closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue needs triage
Development

No branches or pull requests

3 participants