[pacman-dev] [PATCH] Add `build/` to gitignore

Eli Schwartz eschwartz at archlinux.org
Fri Dec 11 02:56:24 UTC 2020


On 12/10/20 9:40 PM, Ivy Foster wrote:
> On 10 Dec 2020, at  6:12 pm -0800, Colin Woodbury wrote:
>> Right, having `meson` do it automatically would work well. I put
>> forth the patch in the first place because the instructions on the
>> Pacman website (master branch), if followed, place the artifacts in
>> `build/`. Other newcomers to the project like me would hit the same
>> thing, so some automated solution would be nice.
> 
> If I may propose an alternative, this seems like an ideal use for
> .../pacman/.git/info/exclude.
> 
> For those who don't know, .git/info/exclude is a secondary gitignore
> file not under version control. It is specifically for files that
> shouldn't be ignored at the project level, but that an individual
> developer or user might want to ignore--such as for build artifacts in
> non-standardized places, or your personal wrapper scripts for testing
> whatever you're working on.

I do this in $HOME/.config/git/ignore since this pattern is shared by 
multiple meson-using projects and I can't imagine "builddir/" being 
actually used for non build artifacts.

Still would be nice to autogenerate this on meson's side. I'm discussing 
it with them...

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20201210/e7b7b5a2/attachment.sig>


More information about the pacman-dev mailing list