Sash
f6899e5c38
#4828 Using version guesser to pull out the commit has for git repositories. The return value is now an array with version and commit values.
9 years ago
Peter Buri
861b2bc8e8
Introduce option to force copy instead of symlinking in PathDownloader
9 years ago
Niels Keurentjes
75bb0d9b10
Implemented Prohibits and Depends correctly now.
9 years ago
Niels Keurentjes
5c98421ae8
Introduce BaseRepository common ancestor class for all repositories to offload command logic.
9 years ago
Jordi Boggiano
8a2d1a2ee2
Make artifact paths in lock file cross-platform, fixes #3832
9 years ago
Niels Keurentjes
ebfceefca6
Removed long deprecated functions that were no longer referenced anywhere.
9 years ago
Niels Keurentjes
72a3563f1e
Removed some 3 year old backward compatibility code.
9 years ago
Jordi Boggiano
39ccb929b1
Merge pull request #4801 from balbuf/balbuf/find-provider-break-early
...
Break early when a provider name is matched
9 years ago
Jordi Boggiano
25e089eee9
Allow force-lazy-providers for any repo, still an experimental flag that should not be used though
9 years ago
Niels Keurentjes
ff6700f9ee
Ignore empty path repositories per issue #4903
9 years ago
Rob Bast
baabc612f6
adjust message, skip test
...
currently we have no way to put dynamic values or wildcards in EXPECT-OUTPUT
9 years ago
Jordi Boggiano
2e1cdccac0
Merge pull request #4875 from cs278/openssl-platform-version
...
Handle OpenSSL's many patch releases
9 years ago
Chris Smith
0818a6ed54
Previous attempt would cause 0.9.8aa == 0.9.8b
9 years ago
Chris Smith
f6f273c4b6
Improve OpenSSL library description
9 years ago
Chris Smith
e9e2514b5e
Handle OpenSSL version after 26 patch releases
...
e.g. https://github.com/openssl/openssl/blob/OpenSSL_0_9_8zh/crypto/opensslv.h#L33
9 years ago
Rob Bast
47aa87ea97
use full json content to determine reference, closes #4859
9 years ago
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Niels Keurentjes
84fed02df1
Globbing while resolving path repositories now normalizes to slashes for predictable cross-platform behaviour. Fixes #4726
9 years ago
Stephen Beemsterboer
f1cf5d64dd
createPackage() method should use the $class argument it accepts
9 years ago
Stephen Beemsterboer
c1b9b082a4
Break early when a provider name is matched
9 years ago
Jordi Boggiano
a13b06725e
Add support for if-modified-since on lazy repos and turning packagist into a lazy provider repo
9 years ago
Jordi Boggiano
1d08f83976
Only clone if needed
9 years ago
Jordi Boggiano
33c123e8c2
Fix passing of options to remotefilesystem in composer repo
9 years ago
Jordi Boggiano
876f143418
Forward repo options correctly to the RemoteFilesystem even if we get one injected, fixes #4786
9 years ago
Jordi Boggiano
b839c7ef1c
Fix code to work with old php, fixes #4779 #4780
9 years ago
Jordi Boggiano
974fb4ac66
Only pass remotefilesystem when needed, fixes #4779
9 years ago
Jordi Boggiano
c1cc6bfecf
Avoid doing too many loads of the remotefilesystem
9 years ago
Jordi Boggiano
5d015defb8
Merge remote-tracking branch 'origin/master' into tls-config
9 years ago
Jordi Boggiano
fd7267e4ad
Show overridden versions (as well as original) in composer show -p
9 years ago
Jordi Boggiano
764de14b5e
Add caching to bitbucket API requests
9 years ago
Jordi Boggiano
64b0d72183
Add missing git fallback function in gitlab driver
9 years ago
Jordi Boggiano
29312be4df
Strict typing fixes
9 years ago
Jordi Boggiano
feefd51565
Fix custom installer example, fixes #4648
9 years ago
Jordi Boggiano
6d9e04c0e9
Tweak regex usage
9 years ago
Jordi Boggiano
ddd85afd32
Merge pull request #4633 from jaapio/feature/gitlabInstallPath
...
Adds support for gitlab installed in subfolder
9 years ago
Jaapio
df92cb09ab
extract regex to const. To be able to reuse it
9 years ago
Lukáš Homza
5b748eda6c
Allows repositories to implement ConfigurableRepositoryInterface and thus provide getRepoConfigmethod
9 years ago
Jaapio
b471440ea0
Adds support for gitlab install in subfolder
...
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab ).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jordi Boggiano
020c126c27
Fix CS
9 years ago
Jordi Boggiano
a10bffec0e
Merge remote-tracking branch 'GromNaN/gitlab'
9 years ago
Jérôme Tamarelle
4255db9e31
Allows SSH urls for gitlab and detect the scheme
...
SSH urls uses HTTPS to request the API
9 years ago
Jordi Boggiano
6c9b161c43
Re-use locker content hash logic to generate dist reference, refs #4515
9 years ago
Jérôme Tamarelle
ac68a721f4
Merge remote-tracking branch 'composer/master' into gitlab
...
Conflicts:
doc/04-schema.md
src/Composer/Util/RemoteFilesystem.php
9 years ago
Jerome TAMARELLE
db056b8383
Fix retry authentification on gitlab oauth
9 years ago
Jerome TAMARELLE
211d4632bb
Fix compatibility with PHP 5.3
9 years ago
Joel Wurtz
7f42fe4c10
Issue #4512 Set reference in path repository
9 years ago
Sullivan SENECHAL
4f4d236be3
PackageInterface[] on RepositoryInterface php doc
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Jordi Boggiano
c41079192f
Merge pull request #4454 from alcohol/urlencode-urls-only
...
only urlencode $ if filename is not local
9 years ago
Rob Bast
b219abe8f6
@seldaek damn your assignment in expression
9 years ago
Rob Bast
e491b72a8c
only urlencode $ if filename is not local
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Dennis Birkholz
9febf55f76
Store url relative again, fix 4439
9 years ago
Jordi Boggiano
ed95448523
URL-encode dollar signs to work around bad proxy failures
9 years ago
Jordi Boggiano
8f44f9cc67
Merge pull request #4422 from dennisbirkholz/wildcard-repositories
...
Enable wildcards in path names for path repositories
9 years ago
Dennis Birkholz
681e543793
Make check more obvious
9 years ago
Dennis Birkholz
6b1c9882dd
Replace tracking variable with direct package count check
9 years ago
Jordi Boggiano
9e67bc761b
Merge pull request #4131 from ammmze/artifact-follow-symlink
...
Follow symlinks when searching for artifacts
9 years ago
Dennis Birkholz
2fb7dd881a
Fix missing trailing / in repository paths
9 years ago
Dennis Birkholz
3ef222c920
Make repository path absolute (again)
9 years ago
Dennis Birkholz
973491b65d
Fix docblock, path names returned by glob() are not necessary absolute
9 years ago
Dennis Birkholz
19146d1cec
Docblock fix as suggested by @alcohol
9 years ago
Dennis Birkholz
c06edd61e4
Fail if no repository was found
9 years ago
Dennis Birkholz
e4435790a4
Documentation
9 years ago
Dennis Birkholz
4209fd2e4a
Store correct url for package, not original url containing wildcards.
9 years ago
Dennis Birkholz
323537ad0f
Allow wildcards in repository path names.
9 years ago
Samuel ROZE
0e8c5fa62e
Store path from composer.json with the `path` repository to ensure lock file to be reused
9 years ago
Jordi Boggiano
89c6a68a76
Updates to path repository and path downloader, refs #4365
9 years ago
Jordi Boggiano
3a79313b63
Merge remote-tracking branch 'sroze/feature/path-repository'
9 years ago
Jordi Boggiano
afd98b74f1
Fix handling of www.github.com in GitHubDriver, fixes composer/packagist#572
9 years ago
Samuel ROZE
6c16153302
Added repository tests
9 years ago
Samuel ROZE
623f31fcc4
Use version guesser to get local package version
9 years ago
Samuel ROZE
ead68d3d49
Create the path repository and downloader
9 years ago
Jordi Boggiano
cedbe7f1a0
Bump vcs verbosity output to very verbose, refs #4330
9 years ago
Jordi Boggiano
0457ec6fb3
Remove deadcode, fixes #4345 , fixes #4268
9 years ago
Malte Wunsch
70ff00c9de
Reverted inadvertent API change, improved API documentation
9 years ago
Malte Wunsch
767279b41a
getCanonicalPackages returns packages with same name in different versions
9 years ago
Jordi Boggiano
79f9158fb2
Merge pull request #4192 from localheinz/fix/import
...
Fix: Add missing imports
9 years ago
Andreas Möller
12ffe2b4d4
Fix: Add missing imports
9 years ago
Andreas Möller
eac5fbdee4
Fix: Remove unused imports
9 years ago
Jordi Boggiano
801a7fcd0a
Add support for constraints and not just exact versions in RepositoryInterface::findPackage/s
9 years ago
Nils Adermann
75c501251d
Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
...
This reverts commit 3e85f82373
, reversing
changes made to b025d0982b
.
9 years ago
Jordi Boggiano
3e85f82373
Merge remote-tracking branch 'naderman/load-no-providers'
9 years ago
Jordi Boggiano
c471edc488
Also downgrade provider access and others
9 years ago
Branden Cash
5146085dc2
Follow symlinks when searching for artifacts
9 years ago
Nils Adermann
8b28d4bc82
Optimisation: Composer repo version listings are index by package name
9 years ago
Nils Adermann
65243ca392
Move methods for PR readability and fix phpdoc
9 years ago
Jordi Boggiano
cdcc99e73d
Merge pull request #4088 from nevvermind/override_init_array
...
Fix "Invalid argument supplied for foreach()" on a new PlaformRepository obj
9 years ago
nevvermind
ec00a4dbfa
Set the platform overrides first
9 years ago
nevvermind
3032f0a538
Refactor based on code review
...
- Move the version api getter to the PluginManager And make it such that it can be mocked, but not pollute the public interface. That means "protected" visibility.
- The plugin api version constant should still be used throughout the code.
- Use different fixtures class names
- Use regex possessive quantifiers for performance
- Use full words for readability
9 years ago
nevvermind
eb2aa14830
Make plugins have actual constraints instead of fixed versions
...
Instead of developing plugins against a single, fixed Plugin API version - `"composer-plugin-api": "1.0.0"`, this change will allow plugin developers to use versions like `"composer-plugin-api": "~1.1"` or `"composer-plugin-api": ">=2.1 <3.0"`, aka actual Composer-compatible constraints.
Only the "1.0", "1.0.0" and "1.0.0" Plugin API versions will be regarded as BC versions, and internally converted to "^1.0"; every other declared version string will be kept as it is.
Because of this new constraint flexibility, plugin version mismatches will be skipped, which means those plugin will NOT be registered to the system. Previously, a mismatch triggered a warning, but plugins were still registered.
9 years ago
nevvermind
8c0d4857ef
Fix "Invalid argument supplied for foreach()" on a new PlaformRepository obj
...
This happens on "new PlatformRepository(array($somePackage))".
The parent constructor calls "\Composer\Repository\ArrayRepository::addPackage()",
which, on a brand new repo object, further calls "\Composer\Repository\PlatformRepository::initialize()"
and finally this iterates over a NULLd "$this->overrides", triggering the error.
9 years ago
Hugo Hamon
e51ff60f59
[Pear] replaces "licence" to "license".
10 years ago
Nils Adermann
63e96a41f8
Add proper docblocks in composer repo
10 years ago
Nils Adermann
aa7d145dd0
PHP 5.3 compatible function invokation
10 years ago
Nils Adermann
ec5416f03c
loadDev parameter is nonsense, properly load packages in create command
10 years ago
Nils Adermann
b99c03ea04
Entirely remove whatProvides from Composer repository
10 years ago
Nils Adermann
090711b21c
Completely move loading of packages from composer repo to pool
10 years ago
Possum
2e99b9fdf5
Use https where possible
10 years ago
Nils Adermann
9b9ad9d0fe
Remove dead code paths and use exceptions instead of die
10 years ago
Nils Adermann
65f69c4227
Remove debug output
10 years ago
Nils Adermann
4d0db5add6
POC Implementation of loading only explicitly named package data
10 years ago
Jordi Boggiano
a57c51e8d7
Finalize platform override feature
...
- Added tests, docs
- Persist to lock file
- Add support in config command
- Added to json schema
10 years ago
Jordi Boggiano
80b0a35a68
Merge remote-tracking branch 'HuffAndPuff/ignore-platform'
...
Conflicts:
src/Composer/Config.php
src/Composer/Repository/PlatformRepository.php
10 years ago
Roshan Gautam
98bc4e4483
Gitlab:Use proper fallbacks if archive download is failing
10 years ago
Roshan Gautam
4d5e5b3fb5
Remove parasite
10 years ago
Roshan Gautam
f870396568
Add oauth2 support for gitlab
10 years ago
Jérôme Tamarelle
c1edfbb65c
Add tests on GitLabDriver
...
Add an interactive prompt for gitlab token
Update doc for gitlab-domains
Add tests on GitLabDriver::supports
Update doc + CS
Optimize branch detection + fix typos
Fix test on GitLab support as it depends on SSL
Remove useless method + fix repository URL containing .git
10 years ago
Jerome TAMARELLE
5fece6ae83
Use Gitlab blob API to retreive composer.json files
...
Store missing composer.json into the cache
[GitLab] Reduce API calls by caching
Download ZIP archives from gitlab + fix repo URL
Fix cached commit objects
10 years ago
Henrik Bjørnskov
782c6303bc
Initial GitLab Driver
...
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.
Various review changes based on Stof comments.
* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
10 years ago
Rob Bast
3d329622d7
overwrite -> overwriteError
10 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
10 years ago
Jordi Boggiano
0b4a9235f4
CS fixes
10 years ago
David Verholen
2d9401fb13
fix bug in GitDriver::supports for remote repo
...
for some reason it does not work (in packagist) without the $output param. I don't get any error message here, maybe someone has an idea, why?
Anyway, need this ;)
10 years ago
Jordi Boggiano
8b46880f42
Avoid failing on composer show of lazy providers
10 years ago
Padraic Brady
19e24c5804
Merge branch 'master' into tls-config
...
Conflicts:
.travis.yml
doc/03-cli.md
src/Composer/Command/ConfigCommand.php
src/Composer/Command/CreateProjectCommand.php
src/Composer/Command/DiagnoseCommand.php
src/Composer/Command/InstallCommand.php
src/Composer/Command/RequireCommand.php
src/Composer/Command/SelfUpdateCommand.php
src/Composer/Command/ShowCommand.php
src/Composer/Command/UpdateCommand.php
src/Composer/Config.php
src/Composer/Downloader/FileDownloader.php
src/Composer/Factory.php
src/Composer/Repository/ComposerRepository.php
src/Composer/Repository/PearRepository.php
src/Composer/Repository/Vcs/VcsDriver.php
src/Composer/Util/GitHub.php
src/Composer/Util/RemoteFilesystem.php
10 years ago
brandung GmbH & Co. KG
d650f05ddf
removed needless output param
10 years ago
davidverholen
50d068b977
+ limit git ls-remote to heads
...
+ escape repo url
10 years ago
davidverholen
80d7ab57ed
add check for remote Repository in GitDriver::supports
10 years ago
Jordi Boggiano
2a1a963b00
support bitbucket URLs with plain http
10 years ago
Jordi Boggiano
0a0ad6c335
Merge pull request #3562 from stof/patch-1
...
Add the package license for PEAR packages
10 years ago
SofHad
45089a6771
[Minor] remove the unused private variables
10 years ago
Jordi Boggiano
e0291f3a30
Fix parsing of empty git commits, fixes #3565
10 years ago
Christophe Coevoet
d22070526f
Add the package license for PEAR packages
...
Refs https://github.com/composer/satis/issues/192
10 years ago
Jordi Boggiano
5133c3fe9a
Merge pull request #3424 from kaktus42/master
...
return false if local file path does not exist in GitDriver and HgDriver
10 years ago
Jordi Boggiano
3ff8bcffea
Allow loading of real composer repos by local path, fixes #1899
10 years ago
Jordi Boggiano
2b7b605839
Skip empty time values
10 years ago
Nils Adermann
91dd999eb6
Merge pull request #3383 from mpoiriert/patch-1
...
change preProcess from private to public
10 years ago
Nils Adermann
89bd9be295
This entirely removes StreamableRepositories and minimal package arrays
10 years ago
Nils Adermann
9751e1ab58
Remove unnecessary collection of names which isn't used
10 years ago
kaktus42
116ccdac62
return false if local file path does not exist in GitDriver and HgDriver
10 years ago
mpoiriert
2a4b125125
change preProcess from private to public
...
I need to override the preProcess method from a child class.
The use case is related to package renaming in a private satis repository. I understand the implication for packagist (and other public repository) but keeping the root packageName cause problem when you need to rename a package.
I will override override the name assignation with this
```PHP
// use the main identifier if name is not present
$data['name'] = !isset($data['name']) ? $this->packageName : $data['name'];
```
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
aaukt
f8fae61b05
Add fallback for findPackage(s) for repo without provider
...
This was introcuced in a4d43ee860
, but is missing the fallback for a repository without providers.
10 years ago
Jordi Boggiano
73e9db5d99
Fix the problem at the source, refs #3322
10 years ago
Jordi Boggiano
18ab5ad6fe
Merge pull request #3154 from francoispluchino/fix-phpdoc
...
Fix phpdoc
10 years ago
Jordi Boggiano
e61e62908e
Merge remote-tracking branch 'frederikbosch/patch-1'
10 years ago
Jordi Boggiano
91ac3e1426
Add support for unixy paths in git/hg local repo urls, closes #3294
10 years ago
frederik
d1d40502bf
ProcessExecutor::escape
10 years ago
frederik
7ae1430689
#3297 ProcessUtil class using ProcessUtil of Symfony Console
10 years ago
Bastian Hofmann
f8023cffdf
renamed cache-credentials to svn-cache-credentials
10 years ago
Bastian Hofmann
b279dda1c0
Merge branch 'master' of https://github.com/composer/composer
10 years ago
Jordi Boggiano
4d522e40fb
Load auth when updating a git repo mirror, fixes #3243
10 years ago
Bastian Hofmann
204fc207fa
Moved config option to not save subversion credentials to repository configuration, added documentation.
10 years ago
François Pluchino
3dc83277a3
Fix phpdoc
10 years ago
Jordi Boggiano
7b4fcd93d3
Merge remote-tracking branch 'webfactory/issue-2698'
...
Conflicts:
src/Composer/Repository/ArtifactRepository.php
10 years ago
Jordi Boggiano
d5294ef91b
Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423
10 years ago
Jordi Boggiano
b7402c3b2d
Ignore gh-pages branches, fixes #3073
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago