-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nix edit #10814
Fix nix edit #10814
Conversation
FilteringSourceAccessor was not delegating getPhysicalPath to its inner accessor.
@@ -5,4 +5,5 @@ mkDerivation { | |||
builder = ./simple.builder.sh; | |||
PATH = ""; | |||
goodPath = path; | |||
meta.position = "${__curPos.file}:${toString __curPos.line}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also saw that we didn't meta.position
anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I don't think tests/functional/flakes/flake.nix
is needed.
Thanks, this was a blazingly fast fix ❤️ |
Motivation
Since we introduced SourceAccessor, nix edit no longer works as described in #9652
This pull requests fixes the issue and adds regression test so that we no longer have this issue in future.
Context
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.