johnstevenson
b1aed48e1a
Fix bug setting COMPOSER_ORIGINAL_INIS
...
This variable stores the loaded ini file and any additional scanned ini
files, separated by a path-separator. The loaded ini file should always
be present, even if it is an empty value. Unfortunately I removed any
empty value to parse the ini files, then used the truncated list to set
the variable.
This bug surfaced on docker php images. These do not have a specific
php.ini but store all their settings in the location(s) configured at
build time using --with-config-file-scan-dir.
2017-11-03 19:52:44 +01:00
Jordi Boggiano
14dc4b20df
Merge pull request #6746 from renanbr/diagnose-with-php-bin-info
...
add php version and binary to the dignose command
2017-11-03 19:52:21 +01:00
Jordi Boggiano
4ab34c22fa
Merge pull request #6740 from croensch/master
...
also support NO_PROXY
2017-11-03 19:50:28 +01:00
Mihai Plasoianu
02b57ff4a2
Return non-zero exit code with --strict and single package
2017-11-03 19:48:59 +01:00
Jérôme Vasseur
71c2ecbace
Fix platform package detection in VersionParser
2017-11-03 19:48:52 +01:00
Jordi Boggiano
11f1e03739
CS tweaks
2017-11-03 19:44:44 +01:00
Minh-Quan TRAN
007ca5ff6a
workaround for gitlab installation with relative url
...
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
2017-11-03 19:42:54 +01:00
Jordi Boggiano
ba53a2d0e6
CS fixes
2017-11-03 17:20:26 +01:00
Jordi Boggiano
41a9357d4b
Merge remote-tracking branch 'thom8/script_help'
2017-11-03 17:19:36 +01:00
Jordi Boggiano
7c7c91344a
Avoid some error paths, refs #6678
2017-11-03 16:32:35 +01:00
Jordi Boggiano
b94d55d1a9
Merge remote-tracking branch 'lulco/search-similar-package'
2017-11-03 16:28:34 +01:00
Jordi Boggiano
9a99e86ebc
Rename NonRoot to Transitive, refs #6674
2017-11-03 14:35:04 +01:00
Jordi Boggiano
9df22654c3
Merge remote-tracking branch 'grasmash/issue-6661-whitelist-all-deps'
2017-11-03 14:20:38 +01:00
Renan de Lima
f1fb969a3a
add php version and binary to the dignose command
2017-10-15 12:48:34 +02:00
Zachary Flower
9ed0a2d35f
Use default configs, where applicable, in init
2017-10-13 22:39:08 -06:00
Zachary Flower
6ce11697ec
Load default config in with other configs
2017-10-13 22:38:35 -06:00
Zachary Flower
9c109dfea1
Add default config source to Config class
2017-10-13 22:38:05 -06:00
croensch
bd6168ef85
fix pull 6740
...
wrongly copied the check, either must be in not-empty
2017-10-13 09:49:04 +02:00
croensch
6da92e98ac
also support NO_PROXY
...
since WINDOWS can only have one case and that is usually upperase
2017-10-12 16:35:05 +02:00
Arjan
a03efa2fda
Composer init - abandoned package warning
...
Added warning for abandoned packages in case more than one package is found for require / require-dev in composer init.
2017-10-07 16:45:15 +02:00
闫兴茂
fb306b6eb7
Update [] to array synax
2017-09-27 17:32:46 +08:00
闫兴茂
f83883b2f6
Add command check-platform-reqs
2017-09-27 17:20:51 +08:00
Kunal Mehta
2a38417653
Sort vendor/composer/installed.json deterministically
...
Just like composer.lock, sort installed.json in order of the package
names. This makes it easier to review diffs when this file is changed.
2017-09-19 18:26:38 -07:00
Jordi Boggiano
c0eb32669a
Remove comment
2017-09-12 09:24:28 +02:00
Thom Toogood
bf880ad5e0
Allow custom script descriptions.
2017-09-12 13:17:08 +10:00
Michal Lulco
c409f96353
Removed unused uses
2017-09-11 21:32:05 +02:00
Michal Lulco
1efe02f2e1
Search similar package when package could not be found
2017-09-11 21:29:00 +02:00
Matthew Grasmick
776977f597
Fixing method name.
2017-09-11 13:53:56 -04:00
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
2017-09-11 19:40:43 +02:00
Matthew Grasmick
11db6f90c2
Cleaning up comments
2017-09-11 12:56:51 -04:00
Matthew Grasmick
2e9e7ddd99
Updating docs.
2017-09-11 12:43:32 -04:00
Matthew Grasmick
3826e51caa
Renaming some methods and props.
2017-09-11 12:38:54 -04:00
Matthew Grasmick
2e4afaa941
Not skipping root packages.
2017-09-11 12:30:48 -04:00
Matthew Grasmick
6db92eae92
Trying to fix update behavior.
2017-09-11 12:27:20 -04:00
Matthew Grasmick
ad465aa769
Updating var names.
2017-09-11 11:47:33 -04:00
Matthew Grasmick
0e192ced69
Adding `update-with-all-dependencies` option.
2017-09-11 11:19:24 -04:00
Matthew Grasmick
f29e98cdf9
Fixes #6661 : Allow a given package and its dependencies (including siblings) to be updated.
2017-09-11 11:16:15 -04:00
Jordi Boggiano
92458596ea
Merge branch '1.5'
2017-09-11 16:23:25 +02:00
Jordi Boggiano
69ecb2403e
Add upgrade alias to update, fixes #6649
2017-09-11 16:13:33 +02:00
Jordi Boggiano
dae575c197
Merge branch '1.5'
2017-09-11 16:09:36 +02:00
Jordi Boggiano
802849d52c
Wording tweaks
2017-09-11 16:09:30 +02:00
Deamon
5b29b7c8e3
delete last coma if deleting last element before end of file
2017-09-11 16:07:07 +02:00
Jordi Boggiano
4853661934
Merge branch '1.5'
2017-09-11 16:02:55 +02:00
Jordi Boggiano
1682d7d454
Fix path repo version parsing to follow COMPOSER_ROOT_VERSION when the git repo is shared with the root package, fixes #6625
2017-09-11 16:02:48 +02:00
Jordi Boggiano
a53f2ce7c7
Merge branch '1.5'
2017-09-11 15:45:50 +02:00
Jordi Boggiano
f71baa5e0c
Try fixing 404s gitlab handling when unauthenticated, refs #6669
2017-09-11 14:41:33 +02:00
Jordi Boggiano
54fd2fd4af
Merge branch '1.5'
2017-09-11 13:02:18 +02:00
Jordi Boggiano
56964a9377
Check for new work dir with both parameters, refs #6651
2017-09-11 13:01:28 +02:00
Ayesh Karunaratne
eb078b432f
Prevent automatic parent directory composer.json discovery if working-dir parameter is set
2017-09-11 12:55:56 +02:00
Jordi Boggiano
3a4604ebbc
Merge remote-tracking branch 'swumao/master'
2017-09-11 12:46:39 +02:00
Jordi Boggiano
a8df30c09b
Merge branch '1.5'
2017-09-11 12:16:16 +02:00
Jordi Boggiano
8b61315b14
Normalize URL as symfony Filesystem::mirror does a straight str_replace on realUrl vs actual iteratee path without normalization and our aRchivableFilesFinder does normalize the path, refs #6667
2017-09-11 11:26:33 +02:00
Gawain Lynch
b859bbcdcf
Pass a VCS filtered iterator to mirror
2017-09-11 11:02:58 +02:00
Mikk Tendermann
2a89d37651
fix gitlab not telling visibilty if user is not logged in
2017-09-11 10:37:32 +02:00
Abyr Valg
37addea447
Make composer see installed dev packages
2017-09-11 10:20:48 +02:00
Fedir Kryvytskyi
dc509b236f
Fixed error, when composer.phar was broken, if it compiled inside folder, that has /composer in path
2017-09-11 10:08:24 +02:00
Michal Lulco
84fed794d7
Trying to find package with similar name when package could not be found
2017-09-09 18:46:41 +02:00
Jordi Boggiano
1e6854455c
Merge pull request #6644 from codekandis/feature/util-filesystem-copy-separation
...
Introduces a new method `copy()`.
2017-09-09 12:57:28 +02:00
Jordi Boggiano
97b22ad387
Merge pull request #6608 from kthbit/local-fossil
...
Teach FossilDriver to work with local fossil repository files
2017-09-09 12:22:25 +02:00
闫兴茂
277f05754d
Add default sort for show --tree option
2017-09-07 14:17:04 +08:00
Christian Ramelow
39d8104897
Introduces a new method `copy()`.
...
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
2017-08-31 20:19:43 +02:00
Jordi Boggiano
d9885d5b3b
Merge branch '1.5'
2017-08-21 09:16:59 +02:00
Jordi Boggiano
9fd4f22ba2
Also ignore dir change prompt in list command
2017-08-21 09:16:54 +02:00
Jordi Boggiano
d932b17c08
Merge branch '1.5'
2017-08-21 09:14:15 +02:00
Jordi Boggiano
d352cc97f7
Do not prompt for dir change on create-project, fixes #6617
2017-08-21 09:13:08 +02:00
Jordi Boggiano
79360da184
Merge branch '1.5'
2017-08-18 14:05:07 +02:00
Jordi Boggiano
a144b5e7ed
Fix GitLab endless loop thanks to API bug, fixes #6615
2017-08-18 14:04:53 +02:00
kthbit
1a30e3fbc1
Don't update local checkout directory if url is pointing to it. Only update the checkout directory if it is controlled by composer.
2017-08-14 10:56:02 -05:00
kthbit
927d3dda89
Teach FossilDriver to work with urls pointing to local repository.fossil files, and not just the local checkout directories.
2017-08-12 11:31:57 -05:00
kthbit
72a66ad9d2
Do not assume we are on Linux and have head, tail, and awk commands available. Instead, parse the output in PHP.
2017-08-12 08:50:12 -05:00
Jordi Boggiano
aff9c72d16
Merge branch '1.5'
2017-08-09 16:02:51 +02:00
Jordi Boggiano
a16867e2c2
CS
2017-08-09 16:02:45 +02:00
Helmut Januschka
320af80ad3
fix tag/branch collection 💣
2017-08-09 16:01:59 +02:00
Jordi Boggiano
0f94dcd848
Fix composer global config handling
2017-08-08 18:40:15 +02:00
David Zuelke
a4d84f15ca
use COMPOSER env var if present for ancestor path search
2017-08-08 18:40:12 +02:00
David Zuelke
4f7b6a3a54
use Factory::getComposerFile in ConfigCommand
2017-08-08 18:40:07 +02:00
Jordi Boggiano
4ea017d1ce
Merge pull request #6595 from dzuelke/cwdup_composer_fix
...
Fix 1.5.0 ancestor dir composer.json search not using COMPOSER env var
2017-08-08 18:29:31 +02:00
Jordi Boggiano
c1bbb750c4
Fix composer global config handling
2017-08-08 18:29:20 +02:00
David Zuelke
b0da7db3af
use COMPOSER env var if present for ancestor path search
2017-08-08 18:08:46 +02:00
David Zuelke
ae7c076a7c
use Factory::getComposerFile in ConfigCommand
2017-08-08 18:04:11 +02:00
Jordi Boggiano
97d09a9b77
Make github driver code more robust
2017-08-08 15:56:14 +02:00
Jordi Boggiano
c89f6338c2
CS tweaks, refs #6592
2017-08-08 10:11:35 +02:00
Jordi Boggiano
6fd504ef41
Add per_page to do less pagination, refs #6592
2017-08-08 10:05:30 +02:00
Jordi Boggiano
086b750b76
Merge remote-tracking branch 'hjanuschka/gitlab_paging'
2017-08-08 10:03:28 +02:00
Jordi Boggiano
c52e8e5656
Update comment
2017-08-08 09:39:31 +02:00
Helmut Januschka
be1f675992
GitlabDriver V4 Paging
...
V4 of gitlab api requires paging in tags/branches
2017-08-07 21:18:46 +02:00
Jordi Boggiano
b07be842a0
Remove feature-branches option as it is misnamed and duplicates the non-feature-branches option, refs #6475
2017-08-07 18:14:04 +02:00
Jordi Boggiano
acdb7638a8
Warn about require-dev not being ignored when an update --no-dev fails to resolve dependencies, fixes #6575
2017-08-07 16:32:13 +02:00
Jordi Boggiano
a3c15d06e4
Merge pull request #6568 from ktomk/patch-windows-bin-proxy-stubs
...
mute first cd in win proxy stub for sh shell, fixes #6567
2017-08-07 15:17:39 +02:00
Jordi Boggiano
6832eacb01
Update GitLab API usage to v4, fixes #6453
2017-08-07 13:13:24 +02:00
Jordi Boggiano
ec2722f879
Add ability to call composer from within subdirectories of a project, fixes #6426
2017-08-07 11:48:12 +02:00
Jordi Boggiano
8e20fffda5
Merge pull request #6548 from ivanpepelko/master
...
Added $_SERVER['USER'] as possible value for <vendor>
2017-08-07 10:58:26 +02:00
Jordi Boggiano
65d49bf811
Merge branch '1.4'
2017-08-07 10:04:46 +02:00
Jordi Boggiano
d2b102ecb9
Merge remote-tracking branch 'svenmuennich/pr/fix-require-command' into 1.4
2017-08-07 09:25:24 +02:00
Jordi Boggiano
23ab57c311
Merge branch '1.4'
2017-08-06 17:21:58 +02:00
Jordi Boggiano
bf940fb21b
Fix exclude-from-classmap when a package is installed as a symlink, fixes #6397
2017-08-06 17:21:04 +02:00
Jordi Boggiano
9afbddab6b
Only update dist references when one existed already, fixes #6363
2017-08-06 16:54:17 +02:00
Patrick Pokatilo
57ed58346a
Be strict and return non-zero exit code for outdated packages when showing all
2017-08-06 15:39:04 +02:00
Sergey Shcherbin
0863b51e7b
Changed date time format to RFC_3399 in VcsDriver
2017-08-06 12:40:38 +02:00
Sergey Shcherbin
f7e0504d38
Changed date format to DATE_RFC3399 for packages with git/hg repositories
2017-08-06 12:40:32 +02:00