Skip to content
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

Merged
merged 2 commits into from
May 31, 2024
Merged

Fix nix edit #10814

merged 2 commits into from
May 31, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented May 31, 2024

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.

FilteringSourceAccessor was not delegating getPhysicalPath to its inner accessor.
@Mic92 Mic92 requested a review from edolstra as a code owner May 31, 2024 09:06
@github-actions github-actions bot added with-tests Issues related to testing. PRs with tests have some priority fetching Networking with the outside (non-Nix) world, input locking labels May 31, 2024
@@ -5,4 +5,5 @@ mkDerivation {
builder = ./simple.builder.sh;
PATH = "";
goodPath = path;
meta.position = "${__curPos.file}:${toString __curPos.line}";
Copy link
Member Author

@Mic92 Mic92 May 31, 2024

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.

@Mic92 Mic92 mentioned this pull request May 31, 2024
13 tasks
@roberth roberth added bug regression Something doesn't work anymore labels May 31, 2024
Copy link
Member

@roberth roberth left a 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.

tests/functional/flakes/flake.nix Outdated Show resolved Hide resolved
@roberth roberth merged commit 802b4e4 into NixOS:master May 31, 2024
9 checks passed
@Mic92 Mic92 deleted the fix-nix-edit branch May 31, 2024 11:30
@kanashimia
Copy link
Member

Thanks, this was a blazingly fast fix ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking regression Something doesn't work anymore with-tests Issues related to testing. PRs with tests have some priority
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants