Commit d7a839b
committed
cue/load: correctly handle the filesystem root as Config.ModuleRoot
Resolves the bug shown in the added test in the last commit.
While here, make use of strings.CutPrefix to simplify the code a bit.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Ied6a5563f0d7ec3e23d3e29112d4a62c99332c9c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1225185
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>1 parent a8385f8 commit d7a839b
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
| 391 | + | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
146 | 145 | | |
0 commit comments