Treewide cleanup meta description#317959
Conversation
|
|
Thanks, @wolfgangwalther, that's very helpful. I'll look into this and make the appropriate changes to this PR. That's good to know, @mweinelt, thanks! Running this differs by orders of magnitude from ofborg's and your report. |
|
The base branch has moved on. Try running it with |
5a98d8a to
d42bb33
Compare
|
I'm not sure that's really it as the git log --oneline master..HEAD
d42bb3333f78 (HEAD -> treewide-cleanup-meta-description, origin/treewide-cleanup-meta-descriptio n) treewide: Improve wording of meta.description
ce8e26495cf1 treewide: Remove the definite article from meta.description
84b5eb1d233e treewide: Remove indefinite article from meta.description
c4182ec375eb treewide: Remove ending period from meta.descriptionWhen running error: syntax error, unexpected PATH_END, expecting DOLLAR_CURLY
at /var/folders/h0/948x8bgn0kd7b1d7hf0bnlr00000gp/T/nix-rebuild-amount-FKM2cs8b:2:73:
1| let
2| lib = import /var/folders/h0/948x8bgn0kd7b1d7hf0bnlr00000gp/T//nix-rebuild-amount-r1Ymbr2y/lib; |
|
@wolfgangwalther Another pattern I found is a Until I'm able to reliably and "correctly" run |
|
|
Very helpful, @mweinelt, thanks a bunch! I addressed the issues I found (see details below), mind generating the list again?
|
|
|
Thanks once more, @mweinelt, very much appreciated! 🙏 I'm looking at @K900 would you be open to re-consider and potentially give your approval to the changes proposed here with 1 rebuild? |
|
There's merge conflicts now. |
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
|
The merge conflicts have been addressed, @K900. Given the amount of changes in this PR and the many contributions to this project it seems there is narrower merge window. I'll do my best too keep this up-to-date and address merge conflicts. |
|
Thanks everyone for lending your expertise on this PR and helping getting it merged, very much appreciated! 😃🙏 |
Is there any reason for us to do this? Is there any prior context for adding this rule here? IMO starting the description with "A", "An" or "The" does not affect the correctness of the description and makes it read more naturally. I don't understand at all why we need to avoid it. |
|
Let me give you an example: "An implementation of" and "implementation of" can be interpreted to different meanings. The latter seems even less clear: is this an official/standard/only implementation, or just an implementation? |
|
In addition, you should not modify the document and perform treewide changes in one commit. This makes the situation even more unclear to reviewers: although you gave the command, since I found some changes that were obviously not completed by this command, So how do I ensure that all the modifications in your commit (which contains thousands of files and can even freeze Firefox when browsing online) are reliable? The modification of the document is also incomplete. You have not modified the corresponding part in the nixpkgs manual, which creates more confusion. The manual still describes it as "right": https://github.com/NixOS/nixpkgs/blob/master/doc/stdenv/meta.chapter.md#description-var-meta-description |
|
Thank you, @Aleksanaa, for chiming in with helpful feedback, very much appreciated, 🙏
To keep the description succinct and concise and free from words that provide no additional meaning.
OpenBSD's Porting Guide (see 18.) shares similar recommendations as the the nixpkgs'
If it is an official or standard implementation the description should include that adjective, if no such adjective is present one can safely assume it is just an implementation.
So one commit for the doc change and one for the treewide application?
Which examples did you find?
Unfortunately I do not have a good answer for that from the top of my head. Let me give it some thought.
Apologies for that I thought the Hopefully I've addressed all your comments and concerns, in case I something left out, please let me know. |
IMO The smooth and less ambiguous grammar should be the first guarantee. Deleting "A/An/THE" does not significantly reduce the time of reading or reduce the size of the repository.
Okay, that's at least the same rule from somewhere. I just checked and it seems that Debian does not add the A/An/The prefix, while Arch and Fedora do not restrict this. Of course I'm not saying that OpenBSD is the "model distribution", or that Fedora and Arch are. But attitudes on this issue are clearly divided. I think this needs further discussion. This may have something to do with native language habits. Some other people in the Chinese group also complained to me that removing the prefix Definite/Indefinite article makes no sense. However, I don't know why, given a controversial decision, this PR was merged within a few days without any discussion about it. This is obviously inappropriate.
I mean editing the doc in one commit with the treewide change.
If you just give a command (thanks for giving the command at least), we can directly reproduce the diff. If you throw some other modifications into it (I mean the documentation, other parts haven't been fully checked yet), things get a little more difficult. |
"The implementation" does not imply standard impl either. If it's really to imply that it's the standard impl, then put the word "standard" or "reference" in the desc and be completely unambiguous. And to call something "the implementation" is misleading; it might be the only impl at the time... until it's not. I find it very difficult to believe that removing leading articles would impede understanding. |
Description of changes
meta.descriptionas recommended in section Meta attributes inpkgs.README.mdmeta.descriptionto start with the definite or an indefinite article topkgs/README.mdmeta.descriptionThings done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.