#322 Composer installs TCPDF with .git repository

closed
nobody
None
1
2014-08-08
2014-07-28
Lubos Dz
No

Hi,

I am trying to install TCPDF via composer.
It works, but unfortunately, it always installs also whole .git directory which has 93 MB.
I only want to install TCPDF files without .git stuff.

How to do that?

Here's my composer.json:

{
    "name": "myprojects/project1",
    "require": {
        "yiisoft/yii": "~1.1.15",
        "twbs/bootstrap": "~3.2.0",
        "tecnick.com/tcpdf": "~6.0.89",
        "phpoffice/phpexcel": "~1.8.0"
    }
}

Thank you in advance.
Lubos

Discussion

  • Nicola Asuni

    Nicola Asuni - 2014-07-29

    Ticket moved from /p/tcpdf/bugs/955/

     
  • Nicola Asuni

    Nicola Asuni - 2014-07-30

    There are not official TCPDF repos in GitHub.
    However, every TCPDF release is tagged, can't you just download the latest tagged version?

     
  • Lubos Dz

    Lubos Dz - 2014-07-30

    I can, but that is not how projects are distributed.

    The old approach is to download TCPDF zip file manually, unzip and deploy into directories and commit everything into repos along with all project files.

    Now new approach is, that we never commit external libraries into repo along with our project files. We always download/update external libs via composer. Thus we save quite a lot of time not worrying about extern libs within our project's repo.

    All our libraries work this way fine, except for TCPDF. Actually it would be OK, but we have to delete whole .git hidden directory to keep our code clean.

    It's not a big deal, of course, but I suppose I might not be the only one around dealing with the issue. So I wanted suggest solution how the things could work properly.

    It is not necessary to move everything to github, of course. It would be quite sufficient once per time sync TCPDF repo from sourceforge to git repo - that way we could use it as well. I just wanted confirmation whether it is maintained that way.

    Anyway, what are the advantages of keeping the project at sourceforge, while github provides significantly better devel environment ? - I am just wondering about your opinion.

    Thanx a lot.
    Lubos

     
  • Nicola Asuni

    Nicola Asuni - 2014-08-08
    • status: open --> closed
    • Group: v1.0_(example) --> Next_Release_(example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks