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

Exclude unneeded files/folders from git packages #9406

Closed
wants to merge 1 commit into from

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Dec 17, 2015

When requiring Piwik using composer there are all files included. Even those not required for running Piwik (like tests, .git files,...)

In order to exclude those files I've added some of them to .gitattributes as export-ignore.
Those files won't be included when git is used to build a package (e.g. download a repo as archive).

Those archives will also be used by composer when a specific version is requested.

Note: If a composer project requires a specific branch or dev-master, composer uses git to fetch all files instead of using an archive, so those files will still be included in that case.

@sgiehl sgiehl added RFC Indicates the issue is a request for comments where the author is looking for feedback. Needs Review PRs that need a code review labels Dec 17, 2015
@tsteur
Copy link
Member

tsteur commented Dec 20, 2015

👍 for this

Should we maybe add some more from here: https://github.com/piwik/piwik-package/blob/master/scripts/build-package.sh#L111 would solve quite a few problems when people download the release from Gtihub etc

@mattab
Copy link
Member

mattab commented Dec 21, 2015

This change sounds good, but targetting to 3.0.0-b1 just in case this could break something (let's play safe)

@mattab mattab added this to the 3.0.0-b1 milestone Dec 21, 2015
@sgiehl
Copy link
Member Author

sgiehl commented Dec 22, 2015

Should I reopen the PR for 3.0 branch?

@tsteur
Copy link
Member

tsteur commented Dec 22, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review RFC Indicates the issue is a request for comments where the author is looking for feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants