Jordi Boggiano
39d187fb1e
Merge branch '1.4'
7 years ago
Robert Lu
05fcc4adfb
can use relative path for mirror
7 years ago
Steve Müller
1d29fa04b1
forward GitLab driver options to remote filesystem
8 years ago
Rob Bast
e2eb8f2201
support for gitlab subgroups, closes #6349
8 years ago
Jordi Boggiano
4d16d6b28b
Oops2
8 years ago
Jordi Boggiano
b6778cd7f6
Oops
8 years ago
Jordi Boggiano
be38f7e65d
Ignore headless mercurial branches in bitbucket API, fixes composer/packagist#778
8 years ago
Jordi Boggiano
be201924cd
Revert "Changes the query string parameter `sha` to `ref` to reflect the GitLab API"
...
Fixes #6344 , refs #6198
This reverts commit 8a496cd2a7
.
8 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Jordi Boggiano
11ce391222
Add support for info/warnings in every json file loaded by ComposerRepo
8 years ago
Jordi Boggiano
ddef9923b0
Merge branch '1.3'
8 years ago
Sjoerd Adema
8a496cd2a7
Changes the query string parameter `sha` to `ref` to reflect the GitLab API
...
Updated the unit test to reflect the change
Fixes #6198
8 years ago
Jordi Boggiano
f200343cf2
Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver
8 years ago
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
8 years ago
Bernhard Froehlich
70314f3570
Fix Repository support for Subversion 1.8.x where the output of svn info
...
has changed.
1.7.22
svn: E170001: Unable to connect to a repository at URL 'https://svswdms02/dashboard '
svn: E170001: OPTIONS of 'https://svswdms02/dashboard ': authorization failed: Could not authenticate to server: rejected Digest challenge (https://svswdms02 )
1.8.17
svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option
svn: E215004: Unable to connect to a repository at URL 'https://svswdms02/dashboard '
svn: E215004: No more credentials or we tried too many times.
Authentication failed
8 years ago
janczer
4707433b40
Fix change array
8 years ago
janczer
11524fc2c2
If xml have not index channel use uri
8 years ago
Stefan Grootscholten
3ccaac619b
Refactor the getRepoData method to not throw an Exception
8 years ago
Jordi Boggiano
f3d0e4660d
Fix urlencoding of gitlab dots, fixes #6064
8 years ago
Stefan Grootscholten
4377ba2bcb
Implement changes after review by stof.
...
- Use camelCase variable names.
- Set 3rd argument of http_build_query
- Remove obsolete checks
8 years ago
Stefan Grootscholten
5dbdefdd72
Implement ordering in requesting tags and branches.
...
Update unit test with latest changes.
8 years ago
Stefan Grootscholten
046b1184dc
Change getChangeDate call
...
Use the v2.0 commit resource instead of the v1.0 changeset resource.
8 years ago
Stefan Grootscholten
bea4ec7f88
Some refactoring after testing hg protocol.
...
- Revert deletion of generateSshUrl() as this is needed when falling back on the GitDriver or HgDriver.
- Implement clean way to fallback from BitbucketDriver to GitDriver or HgDriver after previous changes.
- Implement fallback in HgBitbucketDriver like in GitBitbucketDriver.
8 years ago
Stefan Grootscholten
7ae4ed1ec8
Improve fetching single files via bitbucket API.
...
The former implementation used the 'src' endpoint which returned some meta data as well.
This has been replaced with the 'raw' endpoint which does not return the meta data and does not need an extra JSON decode step.
8 years ago
Stefan Grootscholten
d25c483231
Implement Bitbucket API version 2.0 (where applicable).
8 years ago
Pete Akins
95e9ad57d4
Don’t add github specials if there is no composer data
...
This can happen if an identifier doesn’t have a composer.json file (but other identifiers do)
8 years ago
Jordi Boggiano
31731a06c2
Merge pull request #6023 from stof/add_property
...
Add missing definition of a property
8 years ago
Christophe Coevoet
4ae2aecc54
Add missing definition of a property
8 years ago
Jordi Boggiano
be9abbf9f3
Override all php-* versions when php package is defined in config.platform
8 years ago
Christophe Coevoet
978b87f7bd
Fix the class name for fossil repositories
8 years ago
Jordi Boggiano
8764876cad
Avoid loading xdebug platform package twice, fixes #5995
8 years ago
Jordi Boggiano
1bc8b702ca
Fix handling of annotated tags and prefer them over lightweight tags, fixes #5555
8 years ago
johnstevenson
3928f1f3be
Set xdebug version in environment, fixes #5967
8 years ago
Jordi Boggiano
9b0ddcd9dd
Merge pull request #5954 from Golodnyi/master
...
Not actual parameters
8 years ago
Jordi Boggiano
9d3e3ca486
Fix edge case in bitbucket driver
8 years ago
golodnyi
64f3079c53
rollback changes, since the implementation of the method "search" in the class "ComposerRepository" has parameter "type "
8 years ago
golodnyi
1cced223d8
Not actual parameters
8 years ago
Jordi Boggiano
47beefe94c
Merge branch '1.2'
8 years ago
Jordi Boggiano
9ee17ef6ff
Fix handling of partial package listings containing replaces/provides
8 years ago
Jordi Boggiano
9b730183a6
Merge branch '1.2'
8 years ago
Rob Bast
bcba1399c5
support libressl
...
closes #5917
8 years ago
Jordi Boggiano
193d53921b
Merge branch '1.2'
8 years ago
Jordi Boggiano
7259630cbe
Fix support for partial provider repos
8 years ago
Thomas Flori
7896b1ffab
cache only rendered composer information
...
As suggested we cache now only composer information and also the rendered version again. Perforce is using the same property cache as others and the `Util\Perforce::getComposerInformation()` is using the newly created methods.
8 years ago
Thomas Flori
ec27777341
code improvements as suggested
...
Thanks for your input!
8 years ago
Thomas Flori
d70dfd2df3
revert style changes
8 years ago
Thomas Flori
33d026bb06
fix code style to be PSR-2 conform
...
I tried to solve all PSR-2 style guide violations in files that I changed. One I could not solve: const can not concatenate in php 5.3.
8 years ago
Thomas Flori
597f834ae9
add getFileContent function
...
This function is very similar to a part from getComposerInformation - so we can use this function in getComposerInformation too. And because it is almost everywhere the same we can put it to abstract class.
By implementing getComposerInformation in abstract class we need to add the getChangeDate to interface too. Only Problem: perforce seems not to support a ChangeDate. For this we use 'now' to have at least something.
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Rafael Kassner
44634a689d
HgDriver does not identify bitbucket mercurial repos correctly
8 years ago
Jordi Boggiano
1c34248022
Check that PHP_ZTS is defined
8 years ago
Jordi Boggiano
9b08ee48db
Update platform package regex
8 years ago
David Zuelke
19126d76a6
unify php-* package description grammar
8 years ago
David Zuelke
a26c03eef0
add php-zts virtual platform package
8 years ago
David Zuelke
0f68c01094
add php-debug virtual platform package
8 years ago
Jordi Boggiano
68861c48ed
Merge branch '1.2'
8 years ago
Jordi Boggiano
64d29dc6dc
Fix regex cleaning up repo URLs, fixes #5686
8 years ago
Jordi Boggiano
429ee5f8eb
Merge branch '1.2'
8 years ago
Jordi Boggiano
a2b3e89d56
Make sure php-ipv6 is recognized as a platform package as well
8 years ago
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
8 years ago
Jordi Boggiano
f78f6c963d
Add note about rawurlencode, refs #5503
8 years ago
Calin Marian
a888b082b0
Make urlEncodeAll private
8 years ago
Calin Marian
862a13a17e
Urlencode Gitlab project names
...
Url encode all non alphanumeric characters in project name for GitLabDriver.
If the project name has "." characters in it, which is supported in Gitlab, the Gitlab API will 404 when requesting the branches or tags of the repository. This commit urlencodes all non alphanumeric characters in the project name in requests to the Gitlab API.
8 years ago
ianlet
5874132857
return https url of the repository given gitlab project is public
8 years ago
Richard Fussenegger
560f09cf3c
Changed error suppression to Silencer
8 years ago
Richard Fussenegger
14224a1f02
Reduced to single requirement
8 years ago
Richard Fussenegger
a155f4e7ea
Removed unused Silencer import
8 years ago
Richard Fussenegger
45e998c1d5
Reverted to initial version
8 years ago
Jordi Boggiano
4998ee27b3
Re-use mirror code from the git driver, refs #5384
8 years ago
Jordi Boggiano
664ba44901
Merge pull request #5467 from bohwaz/fossil
...
Fossil VCS support for Composer
8 years ago
Jordi Boggiano
75074382de
Merge branch '1.1'
8 years ago
Jordi Boggiano
ebae5dfd95
Undo downgrade before trying again if http seems unreliable, refs #2835
8 years ago
Pierre du Plessis
f29b3e86ce
Remove type parameter from RepositoryInterface
...
Fixes #5458
Remove the `$type` parameter from `RepositoryInterface` to alleviate the BC break for plugins.
8 years ago
bohwaz
5674262030
fix typo and bugs on Fossil support
8 years ago
bohwaz
0e26a07a74
Fix: use the right directory for repository file
8 years ago
bohwaz
abcbef4a67
Add Fossil support to Composer
8 years ago
Jordi Boggiano
894b53c115
Merge pull request #5454 from pierredup/type-search
...
Added type option to search
8 years ago
Pierre du Plessis
6a557e45b8
Added --type option to search
8 years ago
Jordi Boggiano
1c4acf3583
Refactor code to use RemoteFilesystem facilities for header parsing, refs #5435
8 years ago
Jordi Boggiano
f8c3ef4136
Merge remote-tracking branch 'dunlop-lello/master'
8 years ago
Stefan Grootscholten
78fcb5a366
Add support section to composer data for bitbucket repositories.
8 years ago
Phil Lello
7a112b0395
Check headers for missing scopes before asking for new OAuth token
...
This patch stops the GitHub VCS driver prompting for a new access
token when a repository is deleted/hidden.
Specifically, it checks the X-OAuth-Scopes and X-Accepted-OAuth-Scopes
response headers to see if the scopes on the current request match
those needed by the API call. If they do, the 404 means that the repo
is deleted/hidden, and there's no point asking for a new OAuth token.
8 years ago
Stefan Grootscholten
d9fd9fca6b
Implement changes after review of stof.
...
Rename getContents to getContentsWithOAuthCredentials.
Make gitDriver a private property.
8 years ago
Stefan Grootscholten
1084a3927e
Implement Bitbucket Util in GitBitbucketDriver.
8 years ago
Stefan Grootscholten
307fd4023b
Fetch composer.json using the oauth api.
8 years ago
Jordi Boggiano
5a3d60c0cf
Output warning for invalid-looking packagist config, fixes #5404
8 years ago
Jordi Boggiano
301ea66371
Use silencer and check the function exists, refs #5317
8 years ago
Jordi Boggiano
a7bbdcb794
Merge remote-tracking branch 'Fleshgrinder/ipv6-platform-requirement'
8 years ago
Jordi Boggiano
a4e8d858ba
Merge branch '1.1'
8 years ago
Jordi Boggiano
0cca4d1a44
Fix extension parsing to take the most usable data instead of just using 0 in case of parsing failure, fixes #5331 , fixes #5264
8 years ago
Richard Fussenegger
b68921ce8f
Provide IPv6 requirement via ext
8 years ago
Richard Fussenegger
132c37ab44
Added support for IPv6 requirement
...
I decided to add two additional PHP interpreter packages instead of an additional extension key. IPv6 support is part of PHP core (if enabled) and is not part of any optional extension.
9 years ago
Jordi Boggiano
d11eff27d0
Cache VCS driver after creation to avoid initializing it several times
9 years ago
Jordi Boggiano
8bfb2e8bc2
Add a getter to fetch the repo data from the outside of the github driver
9 years ago
Jordi Boggiano
4f2ae0a1d9
Clarify output when something is installed in the wrong version, refs #5259
9 years ago
Jordi Boggiano
65a4719251
Add output in why-not for when a package requires a platform package and it is not found, fixes #5259
9 years ago
Jordi Boggiano
40df5dddee
Add secure-http:false option to disable the https default of gitlab driver when using ssh urls, fixes #5254
9 years ago
Jordi Boggiano
35fbf9bc14
Merge branch '1.0'
9 years ago
msarca
9f58c3d6e3
Fixed a bug that prevented interactive authentication to work properly
9 years ago
Jordi Boggiano
4c50136522
Avoid caching nulls, refs #5234
9 years ago
Jordi Boggiano
d8c94c2640
Merge remote-tracking branch 'curry684/home-expansion'
9 years ago
Jordi Boggiano
b6680b6f2a
Fix why-not command to dig deeper when it is given a specific version it checks installed packages against that version's requirements
9 years ago
Jordi Boggiano
95e0347917
Merge branch '1.0'
9 years ago
Jordi Boggiano
766c45c047
Add support for local paths pointing directly at the .git folder instead of actual repo, refs #3338
9 years ago
Jordi Boggiano
2062070be9
Warn users with secure-http disabled once per hostname they access insecurely to avoid bad URLs going by undetected, fixes #5008
9 years ago
Jordi Boggiano
ff4e2ec219
Avoid lazy-loading composer-plugin-api
9 years ago
Niels Keurentjes
23ad67b3be
Implement support for tilde expansion, mainly for path repositories
9 years ago
Jordi Boggiano
1f0b01e70d
Merge remote-tracking branch 'watermanio/strict-types' into 1.0
9 years ago
Jordi Boggiano
3b0a1c6f70
Run cs fixer and update config to latest master
9 years ago
Jordi Boggiano
da9b43dcc8
Merge remote-tracking branch 'curry684/code-quality' into 1.0
9 years ago
Jordi Boggiano
ad5951218b
Also trim trailing slashes in PathRepo, refs #5164
9 years ago
Niels Keurentjes
eb77c0b7f5
phpDoc cleanup, removed unused imports, variables and parameters.
9 years ago
Niels Keurentjes
818c3e707a
Ton of phpDoc fixes.
9 years ago
Niels Keurentjes
e6f21137ad
Undefined or default return points fixed.
9 years ago
Andy Waterman
d4207ff49f
Strict type checks of null and bool
9 years ago
Jordi Boggiano
b2b4603215
Fix handling of http://foo/packages.json style repo URLs, fixes #5135
9 years ago
Jordi Boggiano
870dcece1f
Merge pull request #5120 from Seldaek/improve-errors
...
Improve solver error reporting
9 years ago
Jordi Boggiano
623c0dcda7
Improve solver error reporting, fixes #5086 , fixes #2575 , fixes #2661
9 years ago
Niels Keurentjes
49524bc4ba
Centralize secure-http checking
9 years ago
Jordi Boggiano
cb971fcb0e
Hijack pear.php.net from http to force https, refs #5071
9 years ago
Jon Dufresne
939955fb2c
Prefer the first https:// PEAR mirror; avoid http://.
...
Fixes #5069
9 years ago
Niels Keurentjes
d41bd2909b
Make path repository options part of the dist reference hash, fixes #5048
9 years ago
Jordi Boggiano
8bf46768f3
Improve error reporting when loading artifact repos
9 years ago
Jordi Boggiano
3933a7f404
Add conflict detection in why-not, fixes #5013
9 years ago
Jordi Boggiano
8fc659fea3
Allow loading of transport-options in package repo, fixes #4991
9 years ago
Jordi Boggiano
27e1c4358e
Fix show/depends commands to display and abort when a circular dep was reached, fixes #4983
9 years ago
Jordi Boggiano
7e1a23eef7
Add missing use statements
9 years ago
Jordi Boggiano
6f42b9c865
Disable git, svn, http protocols for VCS downloaders, fixes #4968
9 years ago
Jordi Boggiano
8cfbe7023d
CS fixes
9 years ago
Jordi Boggiano
bf1ddaa298
Fix method name for php5
9 years ago
Jordi Boggiano
1aec1c1fc8
Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200 , closes #4207 , closes #2604 , fixes #2920
9 years ago
Jordi Boggiano
6825c04a62
Merge pull request #4799 from balbuf/balbuf/honor-class-name
...
createPackage() method should use the $class argument it accepts
9 years ago
Niels Keurentjes
f794ee7870
Fixes for implicit variable declarations, return type mismatches and invalid method declarations.
9 years ago
Niels Keurentjes
b059cbe37c
Removed unused variables and includes, fixed functions being called with more arguments than declared.
9 years ago
Niels Keurentjes
868e607f17
Missing parent constructor calls.
9 years ago
Jordi Boggiano
7ac783197b
Keep v prefix on pretty version for numerical branches
9 years ago
Jordi Boggiano
bad80878bc
Merge remote-tracking branch 'sashman/master'
9 years ago
Jordi Boggiano
1375f8e60a
Remove setter/getter that isnt needed, refs #4933
9 years ago
Jordi Boggiano
4df7ade801
Merge remote-tracking branch 'burci/feature/path_downloader_option_to_force_copy'
9 years ago
Rob Bast
a245c4618b
php-cs-fixer
9 years ago
Jordi Boggiano
d7855d03c7
Fix some formatting and prettify the tree, refs #4917
9 years ago
Jordi Boggiano
f681dbc51e
Merge remote-tracking branch 'curry684/rewrite-depends'
9 years ago
Jordi Boggiano
fff0aed3a6
Allow Semver VersionParser in input hints
9 years ago
Jordi Boggiano
c9436438ff
Add memoization to parseConstraints, saves some (6-7% here) RAM and marginal CPU time
9 years ago
Franz Liedke
ea30392105
RepositoryManager::prependRepository()
...
This method is useful for dynamically adding repositories with
higher priority than Packagist, e.g. from a Composer plugin.
9 years ago
Sash
582e361a88
Fixing array accessing
9 years ago
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