MestreLion / git-tools

Assorted git tools, including git-restore-mtime
GNU General Public License v3.0
285 stars 74 forks source link

Arch Linux instructions are wrong #76

Open alerque opened 3 months ago

alerque commented 3 months ago

https://github.com/MestreLion/git-tools/blob/faba1cd26b8741ccf781bd7ed5e296a06b3dec86/README.md?plain=1#L40

The AUR is a user repository of package definitions, not packages. These cannot be installed directly with pacman as these instructions suggest. You must either clone the repository and build the package yourself, then manually install the package file (officially recommended) or use an AUR helper that handles those steps automatically (officially not recommended but commonly used for convenience). In either case the command shown here is wrong. Also several references I've seen on stack overflow to this same effect are factually wrong.

The correct way to handle this is probably to just link the AUR packing page and let users use their preferred method.

Separately the AUR package definition is incorrectly setup, but I've commented on that issue there and is unrelated to this tracking issue.

MestreLion commented 3 months ago

Thanks for explaining! I'm not an Arch user, so I wasn't aware of the difference, I just assumed pacman -S would simply grab the package definition, build the package locally and then install it.

So, if the current instructions are wrong, what would be the correct command to install git-tools (or git-restore-mtime) in Arch Linux? Either the official way or using a helper, any working instructions would be better than the current one.