Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17579 > unrolled thread
| Started by | Simonex <simo@sumo.it> |
|---|---|
| First post | 2017-09-12 17:39 +0200 |
| Last post | 2017-09-12 21:22 -0400 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.php
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
| From | Simonex <simo@sumo.it> |
|---|---|
| Date | 2017-09-12 17:39 +0200 |
| Subject | composer: ignore folders |
| Message-ID | <op8v3l$ehd$1@gioia.aioe.org> |
+ cd /mnt/storage/pending/ignore_paths
+ cat composer.json
{
"name": "root/ignore_paths",
"version": "1.1.1-stable"
}
+ cat .gitattributes
docs/ export-ignore
tests/ export-ignore
+ cd /mnt/test
+ cat composer.json
{
"repositories": [
{
"type": "path",
"url": "/mnt/storage/pending/ignore_paths"
}
]
}
# emptyng...
+ rm -rf vendor
+ 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?
[toc] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2017-09-12 19:08 +0200 |
| Message-ID | <f1qil2FrkhkU1@mid.individual.net> |
| In reply to | #17579 |
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
[toc] | [prev] | [next] | [standalone]
| From | Simonex <simo@sumo.it> |
|---|---|
| Date | 2017-09-12 19:32 +0200 |
| Message-ID | <op95n5$t2m$1@gioia.aioe.org> |
| In reply to | #17580 |
Il 12/09/2017 19:08, J.O. Aho ha scritto: > 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" so this can not be done?
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2017-09-12 21:22 -0400 |
| Message-ID | <opa18h$nco$1@jstuckle.eternal-september.org> |
| In reply to | #17581 |
On 9/12/2017 1:32 PM, Simonex wrote: > Il 12/09/2017 19:08, J.O. Aho ha scritto: >> 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" > > so this can not be done? Not in PHP, because it's not a PHP problem. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web