Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17580

Re: composer: ignore folders

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: composer: ignore folders
Date Tue, 12 Sep 2017 19:08:50 +0200
Lines 31
Message-ID <f1qil2FrkhkU1@mid.individual.net> (permalink)
References <op8v3l$ehd$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net ANwOUYV6cJcJEI1EkjXi3gCh/7yDAs5D6tWg6uIjQHBnjDUwgN
Cancel-Lock sha1:BJG0c00Ch5BLKuAFLAn+nk1QxXI=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
In-Reply-To <op8v3l$ehd$1@gioia.aioe.org>
Content-Language en-GB
Xref csiph.com comp.lang.php:17580

Show key headers only | View raw


On 09/12/17 17:39, Simonex wrote:

First I have to say I fail to see your PHP related question

> $ cat .gitattributes
> docs/ export-ignore
> tests/ export-ignore
> 
> $ composer --prefer-dist require root/ignore_paths
> ...
> 
> $ ls -l vendor/root/ignore_paths/
> totale 5
> -rwxrwxrwx 1 root root   67 set  8 17:35 composer.json
> drwxrwxrwx 1 root root 4096 set  8 17:13 docs
> drwxrwxrwx 1 root root    0 set  8 17:13 src
> drwxrwxrwx 1 root root    0 set  8 17:13 tests
> 
> Because DOCS and TEST not ignored?

composer ain't part of git, so the .gitattributes do not affect what
composer does. The export-igoner is used by git when it creates an
archive file of the content, it will not include docs and tests
directories in the archive file.

Test "git archive"


-- 

  //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

composer: ignore folders Simonex <simo@sumo.it> - 2017-09-12 17:39 +0200
  Re: composer: ignore folders "J.O. Aho" <user@example.net> - 2017-09-12 19:08 +0200
    Re: composer: ignore folders Simonex <simo@sumo.it> - 2017-09-12 19:32 +0200
      Re: composer: ignore folders Jerry Stuckle <jstucklex@attglobal.net> - 2017-09-12 21:22 -0400

csiph-web