Jordi Boggiano
89d4df990a
Use JsonFile to decode cached entries
12 years ago
Jordi Boggiano
bebd1ce9c7
Always check for OAuth token in git config, fixes #1243
12 years ago
Jordi Boggiano
1760b1e093
Prevent CompositeRepository instances from being nested
12 years ago
Jordi Boggiano
fef3dacdfb
Reset ids of aliased packages as well
12 years ago
Jordi Boggiano
39e69a3b12
Refactor OAuth acquisition code to generalize it
12 years ago
Jordi Boggiano
bf5f34a114
Merge remote-tracking branch '1stvamp/github-tokens-from-git-config'
12 years ago
Jordi Boggiano
338127ff9c
Disable failure on hash mismatch until it can be proven to work reliably
12 years ago
Jordi Boggiano
3116c979d3
Fix undefined var, fixes #1235
12 years ago
Jordi Boggiano
573e4b2a7c
Merge branch 'newrepo'
12 years ago
Wes Mason
5fb0403276
Use process executor instead of exec to run git config
12 years ago
Wes Mason
1442c1e026
Damnable tabs!
12 years ago
Wes Mason
2cb07dd2fe
Allow use of Github OAuth2 token stored in git config
12 years ago
Jordi Boggiano
0a3097c569
Merge remote-tracking branch 'bboer/feature/svn-alternative-structures'
...
Conflicts:
src/Composer/Repository/Vcs/GitHubDriver.php
12 years ago
Jordi Boggiano
5051e7a0a2
Only try to authorize when fetching the repo info, not subsequent calls, refs #423
12 years ago
Jordi Boggiano
32282e7461
Add hostname to the OAuth app name
12 years ago
Jordi Boggiano
a9811c4e40
Store and reload the github token to/from the config
12 years ago
Jordi Boggiano
3b01d26d67
Swap user credentials for an OAuth token from GitHub
12 years ago
Thomas Adam
1bd5d88b02
quick workaround for Github API limit
12 years ago
Jordi Boggiano
5978197b5d
Reset package IDs before they can be used in the pool in case there are already some in the cache
12 years ago
Jordi Boggiano
ee0cd07468
CS fixes
12 years ago
Jordi Boggiano
541bcabbc0
Actually check the hash after downloading
12 years ago
Jordi Boggiano
07f72e9fb6
Add support for provider listings
12 years ago
Jordi Boggiano
a3f9accd37
Fix various dumb issues
12 years ago
Jordi Boggiano
aafc1f7857
Make sure alias package have a repo instance set
12 years ago
Jordi Boggiano
41c7432fef
Do not fetch from repo for packages that obviously can not be there
12 years ago
Jordi Boggiano
c0e5736ae7
Add support for one-file-per-provider composer repositories
12 years ago
Jordi Boggiano
fde3477563
Report issues in HgDriver as well
12 years ago
Jordi Boggiano
08670e7666
Report errors properly when git driver fails to write in the cache, refs #482
12 years ago
Jordi Boggiano
116b822953
Fix loop and add missing options
12 years ago
Jordi Boggiano
1d80720405
Add retries and failover of all jsons to cache even if the main one worked
12 years ago
Jordi Boggiano
fb296972ef
Enable https for packagist when possible
12 years ago
Jordi Boggiano
b3077bc4bc
Merge pull request #1177 from sandermarechal/stream-context
...
Allow setting stream context options
12 years ago
Sander Marechal
6cf860669f
Add repository stream context options
...
Add support for passing stream context options to the
StreamContextFactory. This allows support for SSH keyfiles, SSL
certificates and much more. Example:
{
"repositories": [
{
"type": "composer",
"url": "ssh2.sftp://host:22/path/to/packages.json",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/path/to/composer.key.pub",
"privkey_file": "/path/to/composer.key"
}
}
}
]
}
12 years ago
Jordi Boggiano
e188f69a0f
Merge remote-tracking branch 'origin/master'
12 years ago
Jordi Boggiano
4998bab944
Show warning if the svn binary is missing
12 years ago
Sander Marechal
4799053ca9
Allow dot in URL scheme
...
This makes it possible to support SSH2 urls, like ssh2.scp://
See: http://www.php.net/manual/en/wrappers.ssh2.php
12 years ago
Zsolt Szeberenyi
5201564c0f
Added support for hg bookmarks
12 years ago
Joseph Bielawski
4772db1460
Add missing `use` in HgDriver
...
Closes #1165
12 years ago
Jordi Boggiano
6bd7ca0230
Fix typos and simplify code
12 years ago
Jordi Boggiano
35245eb817
Add support for local urls and better error reporting to HgDriver
12 years ago
Jordi Boggiano
c14826dd1e
Fix exception handling when loading repos
12 years ago
Jordi Boggiano
fe4516aff8
Clarify exception messages when a package can not be loaded from a composer repository, fixes #1070
12 years ago
Povilas Balzaravicius Pawka
57d1b5a37d
Issue #1056 . Fixed callback call error on search command.
12 years ago
bboer
00361e0087
Fixed tests
12 years ago
bboer
d1a452b00b
Made repoConfig available for the VcsDriver to be able to provide additional configuration options easily.
12 years ago
Jordi Boggiano
781e0d4f55
Add detection of gitolite user for git repos
12 years ago
Jordi Boggiano
803178d28f
CS fixes for #1038
12 years ago
Christoph Hochstrasser
560d6daccf
Using separate variable for URL parts
12 years ago
Christoph Hochstrasser
841efc98a6
Appending 'packages.json' only if not present in URL
12 years ago
bboer
93628c42d8
Add support for alternative structures
12 years ago
Jordi Boggiano
c14bc368b0
Fix memory usage of the update command
12 years ago
Jordi Boggiano
e1bd2fd6df
Clean ups after feedback
12 years ago
Jordi Boggiano
e3b6bd781c
Add RepositoryInterface::filterPackages to stream ops on lists
...
This cuts down on memory usage and also speeds up the search command to a third of its previous time
12 years ago
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
12 years ago
Jordi Boggiano
8a275336a1
CS cleanups
12 years ago
Jordi Boggiano
e46d26cb9b
Add loadAliasPackage to the StreamableRepositoryInterface and clear up responsibilities between Pool and Repositories
12 years ago
Jordi Boggiano
26e8217db7
Remove duplication of branch alias parsing code
12 years ago
Jordi Boggiano
2d4076e9b2
Add support for aliases in streamed repos
12 years ago
Jordi Boggiano
c8a685be6b
Reduce memory usage by only loading packages that are actually needed, fixes #456
12 years ago
Jordi Boggiano
f08c748658
Fix tests, fix handling of branches with slashes in GitDriver, fixes #935
12 years ago
Jordi Boggiano
997ef763b4
urlencode() github calls for safety, refs #935
12 years ago
Jordi Boggiano
242df060c7
Clarify exception message
12 years ago
Jordi Boggiano
a54bf6269e
Improve error messages when network failures occur
12 years ago
Jordi Boggiano
ec301ea8bb
Output error if a VCS repo has no package at all instead of silently going through
12 years ago
Jordi Boggiano
518984b70d
Output error if a local filesystem VCS repo points to a non-existing dir
12 years ago
Sebastiaan Stok
9270904765
fixed issue #992 - branch name not properly escaped
12 years ago
Jordi Boggiano
2d41774bcc
Add warning when loading an https repo if openssl is disabled, refs #930
12 years ago
Nils Adermann
7c547f93bb
Merge pull request #928 from Seldaek/validation
...
Validation
12 years ago
Jordi Boggiano
67b846f4e9
Fix undefined variable in svn driver
12 years ago
Jordi Boggiano
b0151a4ce5
Allow the loader of the VcsRepository to be overriden
12 years ago
Jordi Boggiano
d80180c2b9
Allow notifyUrl to be a complete URL
12 years ago
Jordi Boggiano
5ec41d83b4
Fix non-array return value in some cases on php 5.3.2, fixes #927
12 years ago
Jordi Boggiano
1f31810901
Prevent duplicate PEAR replaces if the given vendorAlias equals the channel alias
12 years ago
Robert Schönthal
0cd453449b
minor changes to JsonFile::parseJson for Drivers
12 years ago
Robert Schönthal
c517ac6404
fixed issue #347 added file to json validation exception
12 years ago
Alexey Prilipko
22aef0124e
Revert Locker change, ignore PEAR packages whose version cannot be parsed.
12 years ago
Alexey Prilipko
ac3cebc633
Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
...
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
12 years ago
Alexey Prilipko
77715e254a
Fix exception message template
12 years ago
Alexey Prilipko
f2853c842b
Review fixes
12 years ago
Alexey Prilipko
e173f11b37
Add PEAR channel reader & Update PearRepository to use it.
12 years ago
Nils Adermann
4eb5f73718
Only create alias package in repositories on the fly if necessary, fixes #793
12 years ago
Jordi Boggiano
656feda837
Revert previous change, use GIT_ASKPASS env var instead
12 years ago
Jordi Boggiano
4ee1ff46a8
Try ssh before http auth, and make sure ssh fails fast if no login is possible
12 years ago
Jordi Boggiano
74c2fd5f06
Merge pull request #824 from beryllium/bug823
...
PECL-UUID does not define a version constant, use phpversion() instead
12 years ago
Jordi Boggiano
66e9dcddf4
CS fixes
12 years ago
Jordi Boggiano
de449aa144
Merge remote-tracking branch 'PSeiffert/master'
...
Conflicts:
src/Composer/Factory.php
src/Composer/Repository/RepositoryManager.php
12 years ago
Kevin Boyd
09be4ed936
PECL-UUID does not define a version constant, so we should use phpversion() to fetch the required information
12 years ago
Jordi Boggiano
95bc5c4898
Fix openssl/pcre matches, and skip other exts properly
12 years ago
Jordi Boggiano
887d913eb6
Merge remote-tracking branch 'ChristianRiesen/master'
12 years ago
Christian Riesen
70e7194b07
Changes after excellent feedback from Jordi
12 years ago
Christian Riesen
432815df67
Added more libraries to PlatformRepository
12 years ago
Jordi Boggiano
ccc6fa3714
Merge pull request #775 from palex-fpt/PR-746
...
PEAR Packages extraction based on package.xml format
12 years ago
Christian Riesen
8d3c85225f
Changed PlatformRepository to handle libraries as well now
12 years ago
Christian Riesen
7b49b013ec
PlatformRepository now knows curl and libxml versions
12 years ago
Jordi Boggiano
a06ebdd8ef
Add caching to svn metadata
12 years ago
Alexey Prilipko
71ac073ebe
Add 'include-path' option to PEAR packages
12 years ago
Jordi Boggiano
3aeb6a8f2d
Minor robustness fix
12 years ago
Jordi Boggiano
740d3aa1e3
Generate source urls with labels and not identifiers
12 years ago
Jordi Boggiano
2257d0b550
Guess issues/source support info for github packages
12 years ago
Jordi Boggiano
2b2a5d0a92
Fix release- tags not being parsed
12 years ago
Jordi Boggiano
d21032ace5
CS fixes
12 years ago
Jordi Boggiano
c440b4594a
More PSR-2 goodness
13 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
13 years ago
Jordi Boggiano
794b51fcdd
Merge remote-tracking branch 'naderman/remove-outdated-alias-code'
13 years ago
Christophe Coevoet
c2d3c0509c
Fixed the check for local git repositories
13 years ago
Christophe Coevoet
4404c5f287
Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"
...
This reverts commit b5eededbe9
, reversing
changes made to 799a478f2a
.
This change was wrong as the GitDriver was then telling it supports
all local URIs even when they are not git repositories.
13 years ago
Ercan Özkaya
ca217bd48f
Add support for file:// URIs to GitDriver
13 years ago
Nils Adermann
be250fbb8b
Remove alias loading code which is no longer necessary
...
Since alias packages do not get dumped anymore, only original packages
will ever be in Filesystem repositories. Alias are created on the fly
based on alias info in the composer.json/composer.lock and on branch
alias data in the original package.
13 years ago
Jordi Boggiano
ba9676e0f2
Add caching for metadata in github driver
13 years ago
Jordi Boggiano
0a0a6b1813
Fix wrong var name, refs #674
13 years ago
Nils Adermann
7c7cac61b6
Merge remote-tracking branch 'github-seldaek/stability'
...
* github-seldaek/stability:
Add stability docs
Add test for Pool handling and refactor a couple things
Add support for stabilities in lock file
Infer stability flags for requirements that have an explicit version required of a lower stability
Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability
Basic handling of stability flags
Add list of stabilities to base package
Add minimum-stability flag on root package to filter packages by stability
Add CompositeRepo::getRepositories
Add package stability
13 years ago
Jordi Boggiano
c2933028e8
Make sure github driver is used for all github urls
13 years ago
Jordi Boggiano
fabf5c2f6d
Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability
13 years ago
Jordi Boggiano
b0134b56c5
Add CompositeRepo::getRepositories
13 years ago
Nils Adermann
655588a5e0
Merge pull request #659 from Seldaek/github_https_fallback
...
Github https fallback
13 years ago
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
13 years ago
Paul Seiffert
1713acf011
Coding standards and Cosmetics
...
Processing feedback given by @stof and @Seldaek.
13 years ago
Paul Seiffert
b3a5ca93c7
Added comments -> IDE friendliness
13 years ago
Paul Seiffert
7308049056
Added removePackage() to Repository\RepositoryInterface in order to provide to be able to rely on the existance of this method in all repositories. Had to add this method to the Repository\CompositeRepository.
13 years ago
Jordi Boggiano
7bfe031768
VcsDrivers now send proper originUrl for authentication
13 years ago
Bastian Hofmann
4b3fc2b5fa
Merge branch 'master' of git://github.com/composer/composer
...
Conflicts:
src/Composer/Repository/PearRepository.php
13 years ago
Bastian Hofmann
7501009d74
added tests for PearRepository
13 years ago
Jordi Boggiano
c454d93a20
Move all logic within try/catch to prevent an incorrect version from blowing up the whole package
13 years ago
Jordi Boggiano
58276d0a52
Warn the user but do not fail hard when a repo can not be synced
13 years ago
Jordi Boggiano
b0b3e17a37
Report errors when a git repo can not be synced up
13 years ago
Jordi Boggiano
b3164de813
Fix tests
13 years ago
Jordi Boggiano
115dc407fa
Merge remote-tracking branch 'GromNaN/git-dir'
13 years ago
Jordi Boggiano
2dffa612a3
Merge remote-tracking branch 'igorw/root-install-twice'
13 years ago
Daniel Holmes
d44b81527b
Fixed variable reference in verbose pear repository message
13 years ago
Jordi Boggiano
8ff497ac6f
Skip filter_var on 5.3.2 since it is buggy
13 years ago
Igor Wiedler
0995933183
Do not install root package as a vendor if some dependency requires it, closes #480
...
Also add some tests for the installer.
13 years ago
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
13 years ago
Jerome Tamarelle
f0ea097134
Remove umask
13 years ago
Jerome Tamarelle
8b408449f6
Create ~/.composer/cache.hg directory if not exists
13 years ago
Jerome Tamarelle
23ef8a419a
Fix var scope in HgDriver
13 years ago
Jérôme Tamarelle
d200481037
Fix tmp dir for HgDriver
13 years ago
Jerome Tamarelle
cc6e1397b2
Fix var scope
13 years ago
Jerome Tamarelle
da823f5f19
Store vcs repositories in composer home to prevent permission issues
13 years ago
Jerome Tamarelle
949728f812
Remove redundant __contruct from VcsDriver implementations and move init code to initialize method
13 years ago
Jerome Tamarelle
017ebabcb5
Pass composer configuration to VcsDriver
13 years ago
Jerome Tamarelle
d489d2aa3c
Store cached git repositories in user HOME to avoid file permission issues
13 years ago
Jordi Boggiano
70ad8274cd
Work around poorly configured php
13 years ago
Jordi Boggiano
ef300ca56a
Fix tests
13 years ago
Jordi Boggiano
a5e00a9e96
Fix PEAR loading, fixes #590
13 years ago
Jordi Boggiano
466d953b5f
Add verbose output to composer compat mode
13 years ago
Jordi Boggiano
9c72b093a3
Merge remote-tracking branch 'bashofmann/master'
13 years ago
Bastian Hofmann
a86ea59742
various fixes for composer interaction with pear repositories:
...
- corrected pear repository base url from channel.xml is now used instead of a hardcoded host/rest/* endpoin
t
- XML is now parsed with LIBXML_NOERROR to accomondate pear repositories with slightly invalid XML (e.g. components.ez.no)
- instead of following links in the returned xml files the pear api structure is now hardcoded so that pear repositories with invalid links also work (again components.ez.no). additional benefit: this removes the need for some str_replace calls
- for pear packages with a packages.json file: 'pear-'.$channelName is not added to package names if this is already part of the package name (see pear.phpunit.de)
13 years ago
Jordi Boggiano
f63df842b3
Fix alias handling with --dev installs, fixes #579
13 years ago
Jordi Boggiano
89e095b4b5
Handle --dev installs/updates
13 years ago
Jordi Boggiano
b094ef7155
Add repository notification API support
13 years ago