Commit f9fd168
committed
nix-eval-warnings: handle lazy-trees source locations
Nix 2.34 with lazy trees prints stack-trace source locations as
«flakeref»/rel/path.nix:line:col instead of a plain store path, so
extract_source() matched nothing and warnings lost their source,
breaking the package's own test suite in CI (build #395).
Match the guillemet form and return the flake-relative path. Also
annotate re.findall's result to fix a pre-existing mypy no-any-return
error.1 parent 9e78932 commit f9fd168
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments