-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Added an error message when using enableFakechroot under darwin #327336
Added an error message when using enableFakechroot under darwin #327336
Conversation
Uses the following patch from @the-sun-will-rise-tomorrow : #327311 (comment) |
@@ -561,6 +561,8 @@ This allows the function to produce reproducible images. | |||
This allows scripts that perform installation in `/` to work as expected. | |||
This can be seen as an equivalent of `RUN ...` in a `Dockerfile`. | |||
|
|||
This does not work under `darwin`! |
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.
I am not sure about this, as I don't see a similar mention elsewhere in the documentation - not sure if that's simply because there's a convention of not mentioning incompatibilities due to bugs or implementation deficiencies, or simply because the situation doesn't occur that much. Regardless, I think this needs to be aligned with the paragraph above.
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.
@NixOS/documentation-team Do you guys have input on this? Is there a convention we're not aware of? And would you think this is fitting? Any input is appreciated! 🫶
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.
Thanks for the ping. I'm not excited about leaving documentation that may get out of date. Sure, reading that in the manual before running into the problem would be great, but I'd err towards maintainability here. If the error is self-explanatory, it should be good enough. I strongly recommend explaining in the error message why it doesn't work on Darwin and what to do about it (e.g. workarounds or upvoting an issue so we can keep track of interest).
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.
I've removed the documentation part and have added a bit more text to the assert error message. Thanks for the input!
Really helpful to get those kind of insights when only starting the journey of contributing. Thank you!
4d53d08
to
075dcc2
Compare
075dcc2
to
7348878
Compare
@Mastermindaxe thanks a lot, this is a nice self-contained contribution that makes an obvious improvement to user experience. Keep at it! |
@fricklerhandwerk Thank you for that! |
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.