#11431 On new package repository creation add a gitignore with *.src.rpm
Closed: Can't Fix 8 months ago by humaton. Opened 11 months ago by justinz.

  • Describe the issue
    Users can accidentally commit src.rpm files when building locally if they miss them. Adding /*.src.rpm to all new git repositories would reduce this occurrence for future repos and reduce future storage costs.

  • When do you need this? (YYYY/MM/DD)
    No rush

  • If we cannot complete your request, what is the impact?
    Storage costs. Every time someone accidentally commits a .src.rpm file it is in git forever as an object. Stopping these files from entering the git object storage would reduce future cost of storage expansion


In a way this is already happening if you clone the repo with fedpkg:

$ fedpkg clone -a fedpkg
Cloning into 'fedpkg'...
...
$ cat fedpkg/.git/info/exclude 
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
i386/
i686/
x86_64/
ppc/
ppc64/
ia64/
mips/
arm/
noarch/
/*.src.rpm
/build*.log
/.build-*.log
results/
results_*/
clog
$ 

That's great, however people can and do still clone with plain old git clone, when they do this it's just an empty repo.

Metadata Update from @jnsamyak:
- Issue tagged with: medium-gain, medium-trouble

11 months ago

It would probably be best to first discuss this on the devel list

Is there an issue with discussing it here? I find mailing lists rather troublesome to follow.

Only a very limited number of folks are subscribed here and are aware of this ticket.

Hi @justinz,

At today's releng weekly meeting, we discussed this proposal. We do not see any simple solution that will not be disruptive for other use cases.

As proposed in previous comments can you please reach out to develelist?
If it is too much trouble I will ask there tomorrow.

Metadata Update from @humaton:
- Issue close_status updated to: Can't Fix
- Issue status updated to: Closed (was: Open)

8 months ago

Login to comment on this ticket.

Metadata