Commit 2f1d769
authored
[wrappers] shellenv should not create bin wrappers (#1082)
## Summary
Fixes #1073
The underlying cause of #1073
is that we were creating bin wrappers in shellenv which can get called a
lot (and in parallel) this was leading to race conditions.
We should still try to limit shellenv calls (because they slow things
down), but this fixes the race condition.
cc: @bketelsen
## How was it tested?
Since I could not repro race condition, I created a setup that simulated
it:
* Wrote some testing code that would save a file to /tmp every time
create wrappers is called.
* Setup the environment to call a bin wrapper for every command
* Before change, saw new /tmp file being created on every command.
* After change, no new /tmp file was getting created.
* Tested `devbox install` for sanity.1 parent be311bd commit 2f1d769
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
265 | 275 | | |
266 | 276 | | |
267 | 277 | | |
| |||
285 | 295 | | |
286 | 296 | | |
287 | 297 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | 298 | | |
293 | 299 | | |
294 | 300 | | |
| |||
0 commit comments