Commit 02a719f
authored
[env] Fixed env_from bug when it is called from a subdirectory (#2355)
## Summary
Fixes this bug:
https://github.com/jetify-com/devbox/pull/2174/files#r1659165116
## How was it tested?
- use compiled devbox
- put `export FOO = 'BBBAR'` in .env file
- put the following in a devbox.json file
```json
{
"packages": [],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo $FOO"
]
}
},
"env_from": ".env"
}
```
- create a subdirectory besides devbox.json called `test`
- cd test && devbox run test1 parent 8205c25 commit 02a719f
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments