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

Warn against the use of relative 'git+file:' flake inputs #12277

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

edolstra
Copy link
Member

Motivation

Make sure that users know that use of relative git+file: inputs is not supposed to work.

Context

See #12107 for more discussion.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Jan 16, 2025
"This is not supported and will stop working in a future release.",
url);
}
repoInfo.url = std::filesystem::absolute(url.path).string();
Copy link
Member

@bryango bryango Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still necessary after #12254? If not, we can simply drop it. The absolute(url.path) fix was proposed before #12254. It seems this is still necessary for flake inputs. I think the warning is great as it helps people migrate to other configurations.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's still needed. Only CLI arguments are absolutized.

@edolstra edolstra enabled auto-merge January 17, 2025 11:35
@edolstra edolstra merged commit 43a170a into NixOS:master Jan 17, 2025
10 checks passed
@edolstra edolstra deleted the warn-relative-git branch January 17, 2025 11:49
roberth added a commit that referenced this pull request Jan 21, 2025
Backport git+file:./ fixes to 2.24 (#12107 + #12277)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetching Networking with the outside (non-Nix) world, input locking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants