Commit 76459da
committed
[core] Clear PATH cache when mutating PATH
Mem.SetNamed sets self.clear_path_cache every time 'PATH' is
modified. SearchPath checks for self.mem.clear_path_cache on every
CachedLookup, clearing the cache if necessary.
Fixes: #2445
Signed-off-by: Andrii Sultanov <[email protected]>1 parent 63ac5b5 commit 76459da
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
| 1388 | + | |
| 1389 | + | |
1388 | 1390 | | |
1389 | 1391 | | |
1390 | 1392 | | |
| |||
2023 | 2025 | | |
2024 | 2026 | | |
2025 | 2027 | | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2026 | 2034 | | |
2027 | 2035 | | |
2028 | 2036 | | |
| |||
0 commit comments