Skip to content

Package size management problem #115

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

Closed
xreef opened this issue Apr 7, 2022 · 1 comment
Closed

Package size management problem #115

xreef opened this issue Apr 7, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@xreef
Copy link

xreef commented Apr 7, 2022

Hi all,
I try to manage the size of the package with the .gitattributes file by excluding some folders; the package size of my release become 1.5Mb,
https://github.com/xreef/PCF8574_library/releases
but the package size from the Arduino library rest 24Mb
https://www.arduinolibraries.info/libraries/pcf8574-library

Is there a better way to manage the file/directory exclusion, or must I remove that files from GitHub?

Thank you for your support Renzo

@per1234 per1234 transferred this issue from arduino/library-registry Apr 7, 2022
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 7, 2022
@per1234
Copy link
Contributor

per1234 commented Apr 7, 2022

Hi @xreef. Thanks for taking the time to submit an issue.

Unfortunately, the "libraries-repository-engine" tool that generates the release archives from the library repositories currently does not honor the .gitattributes configuration, so everything in the repository is added to the archive.

The exception is that the folders listed here are skipped:

// SCCSFiles is a map of folder names used internally by source code control systems.
var SCCSFiles = map[string]bool{
"CVS": true,
"RCS": true,
".git": true,
".svn": true,
".hg": true,
".bzr": true}

I see we have another request for .gitattributes support at #59.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Apr 7, 2022
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Apr 7, 2022
@per1234 per1234 self-assigned this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants