Skip to content

Fix nix edit#10814

Merged
roberth merged 2 commits into
NixOS:masterfrom
Mic92:fix-nix-edit
May 31, 2024
Merged

Fix nix edit#10814
roberth merged 2 commits into
NixOS:masterfrom
Mic92:fix-nix-edit

Conversation

@Mic92
Copy link
Copy Markdown
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
builder = ./simple.builder.sh;
PATH = "";
goodPath = path;
meta.position = "${__curPos.file}:${toString __curPos.line}";
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread tests/functional/flakes/flake.nix Outdated
@roberth roberth merged commit 802b4e4 into NixOS:master May 31, 2024
@Mic92 Mic92 deleted the fix-nix-edit branch May 31, 2024 11:30
@kanashimia
Copy link
Copy Markdown
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