Repository navigation
libexpr: Don't leak output of SourceAccessor::showPath in eval - #16780
Merged
Merged
Conversation
xokdvium
force-pushed
the
fix-showPath-leakage
branch
from
November 7, 2026 19:53
6e1d10a to
d9526aa
Compare
Contributor
Author
|
This is a bit of a regression from #14050 for pure-eval |
xokdvium
marked this pull request as draft
November 7, 2026 20:04
Contributor
Author
|
The second commit is also a regression fix from #14050 (comment) |
Ericson2314
approved these changes
Nov 7, 2026
Ericson2314
left a comment
Member
There was a problem hiding this comment.
It is good, but we should put some docs on showPath and toString so this doesn't happen in the future
Contributor
Author
|
Will add more tests. Though hopefully I can do the language tests refactor so that we can run them with more store types and we'll get better coverage that way |
xokdvium
marked this pull request as ready for review
November 8, 2026 11:54
xokdvium
force-pushed
the
fix-showPath-leakage
branch
from
November 8, 2026 12:31
f5d3b1e to
d12ff06
Compare
showPath (called from SourcePath::to_string()) is now primarily meant only for legible source locations in error messages and such. See #16550. Also hack around lazy paths issue with `nix run` when the program is a "mounted" path by stuffing back opaque string context.
They pollute the logs way too much and provide little useful context.
xokdvium
force-pushed
the
fix-showPath-leakage
branch
from
November 8, 2026 14:02
3131f08 to
0845028
Compare
xokdvium
enabled auto-merge
November 8, 2026 14:02
3 tasks done
|
Successfully created backport PR for |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
showPath (called from SourcePath::to_string()) is now primarily meant only for legible source locations in error messages and such.
See #16550.
Also hack around lazy paths issue with
nix runwhen the program is a "mounted" path by stuffing back opaque string context.Implementation
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.