-
-
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 flakes follow symlinks #12286
Fix flakes follow symlinks #12286
Conversation
You could have added that as a commit to my PR, but I'm fine with yours being merged. If my changes weren't a one-liner, I'd care more about proper attribution, just fyi. |
Hey @con-f-use, sorry I’m not so familiar with GitHub. It's off topic but do you mean I can clone your fork and push directly to it? There were a lot of commits between then and now, so I’d have to rebase master and force push a commit to your branch. |
Depends, if you're a maintainer of nix, you can just push to my branch, because I have "Allow edits by maintainers" checked.
Yes, kinda. You can make a PR to my forked branch. You don't have to force push or care about the commits that have happened in the mean time if you simply add a new commit that just contains the tests. I.e. just adding the |
Alternatively, if you include the tip of @con-f-use's branch in this PR's history, and we merge this, then GitHub will correctly consider both PRs to be merged. |
Thanks a bunch, that’s cool to know! |
Co-authored-by: Jan Christoph Bischko <[email protected]>
3f6b6c0
to
453e8dc
Compare
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 24d11d2 |
Motivation
This is a port of #9499 by @con-f-use with tests requested by @roberth
The last point should be discussed. The current behavior is nix respects the original flake that symlink is pointing to, no
--impure
needed. This is IMO the desired behavior that I can store links of all the flakes in each project in one place, like how nix manages profiles.But if someone wants to have one general flake that applies to multiple projects, and for example, uses relative path to files, it's not the case.
But I thinkpath:
should be the solution.Context
Closes: #9463
Closes: #9499
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.