-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/limine: Fix reading generations for primary profile and specialisations #391210
Conversation
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.
LGTM, but I can't test it.
PS: nit: It is good style to trim commit messages to a width of 72 characters
I will look over this later. |
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 agree with phip1611, follow the 50/72 rule in your commit message. First line should be 50 characters or shorter (important but exceeding by a few characters is not a big deal), the rest should fit in 72 columns (I find myself doing 80 columns sometimes but the important bit is that it should be hard-wrapped).
This isn't part of the official nixpkgs commit style guide but IMO should be, the actual number of columns doesn't really matter but everything should be hard-wrapped in the commit message and the first line should ideally be short enough to not make GitHub cut it off.
This was discussed on Matrix, this isn't a big problem.
Context? In a public Matrix instance? |
In #dev:nixos.org. I've asked people's opinions about the 50/72 rule, where the general consensus seems to be that it's unenforceable without a lint and would be a trivial nitpick spammed in reviews. In hindsight, I agree with this. Your comment still applies, the commit message should probably be hard-wrapped. My comment about the 50/72 rule is unenforceable and could not be adopted in nixpkgs so I won't be nitpicking over it. TL;DR: my comment doesn't apply and this discussion doesn't involve your comment, so no worries. I'd suggest the commit summary (first line) be untouched (it probably couldn't be made shorter) but the rest (the commit body) wrapped at whereever @boomshroom wants (just don't make single line paragraphs and it's good). Nitpicky stylistic choices about commit messages usually shouldn't block the PR. |
Previously, all generations for the primary system profile read their data from the currently active one rather than their own path, and specialisations in general all used their parent bootspec rather than their own. This fixes both issues. This commit still uses the parent path's build date for specialisations, but this is more minor issue and the times shouldn't be meaningfully different in most cases anyways.
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.
Tested, works
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.
LGTM
Previously, all generations for the primary system profile read their data from the currently active one rather than their own path, and specialisations in general all used their parent bootspec rather than their own. This fixes both issues.
This commit still uses the parent path's build date for specialisations, but this is more minor issue and the times shouldn't be meaningfully different in most cases anyways.
Things done
system-{gen}-link
rather thansystem
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.