Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elegant way to ignore PDF files for packages #1671

Open
Bi0T1N opened this issue Feb 5, 2025 · 0 comments
Open

Elegant way to ignore PDF files for packages #1671

Bi0T1N opened this issue Feb 5, 2025 · 0 comments

Comments

@Bi0T1N
Copy link
Contributor

Bi0T1N commented Feb 5, 2025

Problem

Currently it's discouraged to add PDF files to packages that can be reproduced by compiling an example file.
To easily fix this once and forever, the main .gitignore file could forbid PDF files. However, this does not seem to be desired even if the rare amount of required PDF files could be forcibly added with git add --force wanted.pdf.
Another approach at the package level would be to add a .gitignore file to the package sub-directory but this results in a failing pipeline:

Error: packages/preview/iconic-salmon-svg/.gitignore: a package directory may only contain version sub-directories, not files.

Thus a .gitignore needs to be placed into every version sub-directory and at the moment this repository already contains 154 .gitignore files.

find packages/ -name .gitignore | wc -l 
154

Current state

The current state is that you would need to have a single .gitignore file in every version sub-directory which is cumbersome and prone to errors. And somehow useless, because you no longer touch the version directory after the merge to the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant