Skip to content

Commit 07c144f

Browse files
committed
Fix GOROOT not being set in devbox shell environment
When you don't have a global installation of go toolchain and rely only on the one provided by devbox, there is no GOROOT variable set, so even though the go binary is in PATH, none of its commands work and fail with GOROOT not found.
1 parent ba61717 commit 07c144f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devbox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"kind@0.27.0",
1414
"kubectl@1.32.2"
1515
],
16+
"env": {
17+
"GOROOT": "$PWD/.devbox/nix/profile/default/share/go"
18+
},
1619
"shell": {
1720
"init_hook": [
1821
"echo 'Welcome to devbox!' > /dev/null"

0 commit comments

Comments
 (0)