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#11718Mic92 merged 1 commit intoNixOS:masterfrom xokdvium:dev/move-create-directory-out-of-assert
fs::create_directory out of assert#11718Conversation
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. |
|
@mergify queue |
🛑 The pull request has been removed from the queue
|
|
@mergify rebase |
☑️ Nothing to doDetails
|
|
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.