Skip to content
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

lib.concatMapAttrs: Simplify stack trace #235197

Merged
merged 1 commit into from
May 31, 2023

Conversation

roberth
Copy link
Member

@roberth roberth commented May 31, 2023

Description of changes

By removing the unnecessary pipe and flip, we get a simpler, shorter stack trace.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@infinisil
Copy link
Member

@piegamesde might be interested in this as the author of NixOS/rfcs#148

@piegamesde
Copy link
Member

@infinisil Thanks, this is an interesting example.


On another note, I'd like to see less pull requests of the kind "self-merged after 3 hours", even for simple and straightforward changes

@infinisil
Copy link
Member

On another note, I'd like to see less pull requests of the kind "self-merged after 3 hours", even for simple and straightforward changes

Agreed! I would've merged this PR @roberth 🙂

@roberth
Copy link
Member Author

roberth commented Jun 1, 2023

On another note, I'd like to see less pull requests of the kind "self-merged after 3 hours", even for simple and straightforward changes

Ok. Feels unnecessary, but I can think of some arguments. I'll do my part and see how it goes.

rfc 148

Actually I just pulled this commit from #202517 with the intent of removing the trivial stuff to make review easier. I didn't want to bother anyone with review because I thought it was uninteresting and not worth their time. So I got that wrong then.

@piegamesde
Copy link
Member

I understand your motivation and don't think merging this PR quickly was inherently bad. It's just that not all Nixpkgs contributors hold themselves up to the same standards, so this kind of thing tends to occasionally go wrong and break things. And it's of course difficult to differentiate here, so the next best thing is to normalize some generous safety margins, even though they might feel (and be) unnecessary in some situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants