!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

417 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
1 Aug 2025
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)I am also in agreement with that16:09:32
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)But for those cases, I just disable the pre-commit hook16:09:41
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)And do my work16:09:45
@emilazy:matrix.orgemily git commit being a blocking/fallible operation is unpleasant, with Jujutsu the workflow is even more fluid so the idea of it would be even worse :p 16:09:47
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)I don't think there's a good solution to satisfy everyone16:09:55
@emilazy:matrix.orgemilyand then you have to fix up commit 1, and then commit 2 gets conflicts, etc.16:10:02
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)So I'm more inclined to pursue solutions that does not get in the way of the existing contributing force to be clear16:10:12
@emilazy:matrix.orgemilywell my question is what would be unsatisfying about formatting the entire codebase on all branches and enforcing it16:10:20
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)But would gladly take issues / solutions for the rest16:10:28
@emilazy:matrix.orgemily because then you can use a pre-commit hook or you can format in your editor (even if your editor is dumb) or you can jj fix and it all works 16:10:34
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
well my question is what would be unsatisfying about formatting the entire codebase on all branches and enforcing it
Diff noise
16:10:36
@emilazy:matrix.orgemilythe one-time diff noise? or something ongoing?16:10:50
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)The one time diff noise and the apparently continuous diff noises at every bumps16:11:01
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)The fact that patches becomes more cumbersome to apply if you are prior to the formatting commit16:11:15
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)etc.16:11:16
@emilazy:matrix.orgemilyI can believe that clang-format changes its output over time but I would be surprised if it changes drastically on a regular basis16:11:21
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)I think the current team consensus is strongly against "a big formatting commit"16:11:31
@emilazy:matrix.orgemilythis is easily fixable in the other direction though16:11:41
@emilazy:matrix.orgemilyconflicts caused solely by formatting changes can be mechanically resolved16:11:49
@emilazy:matrix.orgemily not just by jj fix, Git mergetools can handle this 16:12:00
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
conflicts caused solely by formatting changes can be mechanically resolved
Sure but only by people who know enough
16:12:06
@emilazy:matrix.orgemily Nixpkgs implemented this with nixfmt 16:12:10
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)It becomes an elevated amount of support load16:12:15
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
Nixpkgs implemented this with nixfmt
And to me, this is not a success fwiw
16:12:43
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)(All the contrary)16:12:48
@emilazy:matrix.orgemilyI'm not really seeing the scenario you're envisioning I think… the format check can tell you how to fix it and Gerrit already insists on fast-forward merges16:12:52
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)The amount of time I lost due to the big reformat of Nixpkgs is nontrivial16:12:57
@emilazy:matrix.orgemilythere have certainly been annoying issues but resolving conflicts if you know the tooling has not been an issue for me. ymmv of course16:13:21
@emilazy:matrix.orgemilydocumenting how to automatically deal with the conflicts is of course a good idea16:13:28
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
there have certainly been annoying issues but resolving conflicts if you know the tooling has not been an issue for me. ymmv of course

Put in another way:

  • If you know what you do, a big reformat commit works
  • If you don't, the experience can be miserable
16:13:49

Show newer messages


Back to Room ListRoom Version: 10