-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
pathExists: Return false on "/nix/store" in pure mode #10505
base: master
Are you sure you want to change the base?
Changes from all commits
4065f16
e244309
702ca51
9668546
978b364
b3a6b79
75a070c
873be03
7a11e60
be7dac4
fc3f70c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,7 @@ struct SourceAccessor : std::enable_shared_from_this<SourceAccessor> | |
std::optional<uint64_t> narOffset; | ||
}; | ||
|
||
Stat lstat(const CanonPath & path); | ||
virtual Stat lstat(const CanonPath & path); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC if allowed paths is closed under taking parent dirs, then we don't need this, because this is just done for sake of resolving symlinks? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is necessary to get the correct error message for inaccessible paths, i.e. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense, I was thinking more the other thing, having |
||
|
||
virtual std::optional<Stat> maybeLstat(const CanonPath & path) = 0; | ||
|
||
|
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.
This is a generic solution for getting the closure of path parents. Would be nice to factor out.