-
-
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(nix/eval.cc): move call to fs::create_directory
out of assert
#11718
fix(nix/eval.cc): move call to fs::create_directory
out of assert
#11718
Conversation
If the call is inside the assertion, then in non-assert builds the call would be stripped out. This is highly unexpected.
CC @Ericson2314. I'm not familiar with the code at all. But just looking at the diff b5c8865 this does not look correct to me. |
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.
good catch
@mergify queue |
🛑 The pull request has been removed from the queue
|
@mergify rebase |
☑️ Nothing to do
|
Thanks! I think we always do |
If the call is inside the assertion, then in non-assert builds the call would be stripped out. This is highly unexpected.
Motivation
I was looking through recently merged commits and ran across b5c8865 and this really stood out to me. I left a comment in the original PR #11650 (comment), but that did not get any traction. So I'm submitting this PR so this does not get lost.
Context
#11650
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.