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
Jordi Boggiano
d036b2390e
Load root aliases for providers by package name and not by provider name, fixes #3043
10 years ago
Jordi Boggiano
89ec322929
Merge remote-tracking branch 'benja-M-1/feature/svn-auth-from-auth-json'
10 years ago
Jordi Boggiano
58d01b2c6e
Merge pull request #2988 from tristanlins/feature/composer-repository-find-packages
...
ComposerRepository::findPackage[s]
10 years ago
Jordi Boggiano
effacc1185
Do not realpath relative local URLs, fixes #2916
10 years ago
Benjamin Grandfond
a21b0f82db
Allow SVN to connect with credentials provided with the auth.json file
10 years ago
Jordi Boggiano
3ebc869060
Extract functionality from GitDownloader to make it more reusable
10 years ago
Jordi Boggiano
e0886b94a2
Make Git::cleanEnv static
10 years ago
Joakim Israelsson
19b3955022
Throw InvalidArgumentException on invalid platform packages in config.
...
It's a user provided configuration value that's wrong so
it makes more sense.
11 years ago
Joakim Israelsson
ac89a5bb3b
Only allow platform packages to be overridden.
...
As defined by the PlatformRepository::PLATFORM_PACKAGE_REGEX pattern.
11 years ago
Joakim Israelsson
f76685ce4f
PlatformRepository now takes an array of packages to override.
...
These overrides are on the form
array($packageName => $version)
These "virtual" packages are added instead of the real ones,
with the version specified. Note that it is a version and not
a constraint so you cannot pass array('ext-mongo' => '*').
Also there is currently no limit what packages can be overriden.
11 years ago
Jordi Boggiano
0c343f925a
Clarify code
11 years ago
Tristan Lins
a4d43ee860
Implement ComposerRepository::findPackage and ComposerRepository::findPackages.
11 years ago
Jordi Boggiano
2a7a954f62
Handle multiple urls in package transport options
11 years ago
Jordi Boggiano
b6981d09e8
Fix handling of origin url in composer repository class
11 years ago
Jordi Boggiano
31b787249c
More fixes to mirror support
11 years ago
Jordi Boggiano
44e45ed2d5
Add support for lazy providers/proxies
11 years ago
Jordi Boggiano
77163f66fc
Add support for mirrors in composer repos
11 years ago
Jordi Boggiano
e707dcd92f
Also load transport options in filesystem repositories to avoid loss from the installed repo, refs #2189
11 years ago
Jordi Boggiano
faeb706de6
Handle alias packages properly, refs #2189
11 years ago
Jordi Boggiano
32cd883daa
Rename options to transport-options, refs #2189
11 years ago
Jordi Boggiano
016a016455
Merge remote-tracking branch 'lcobucci/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 years ago
Jordi Boggiano
eebffacd9f
Use pagination to get tags/branches from the github API
11 years ago
schmkr
8dd6b052ce
Updating SvnDriver trunk revision check
...
Not checking revision of composer.json, but from its parent directory.
See composer/composer#2849
11 years ago
Jordi Boggiano
b437c1cc05
Support github auth directly in the RemoteFilesystem class
11 years ago
Jay
556aceeaaa
Removing dist reference info from Artifact Repository
...
The getComposerInformation method adds dist information to package. This includes reference, which holds the name of the zip file. For e.g. "MyPackage-1.2.zip".
Now, when using satis for hosting these packages, it uses the same code for archiving composer packages implemented at https://github.com/composer/composer/blob/master/src/Composer/Package/Archiver/ArchiveManager.php
In the implementation, getPackageFilename() adds the distReference info to the file name, which makes the zip file created at the end to be weird. Like "jay-logger-1.2-MyPackage-1.2.zip.tar". I am not sure if there is any other use of dist reference in Artifact Repository, but this would stop causing that issue.
11 years ago
Paul Tarjan
ddec582ca1
use HHVM_VERSION
...
this one is better (they are the same)
11 years ago
Jordi Boggiano
e7b82cdd88
Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320
11 years ago
Alex Romanenko
5078d7c4fb
Fix space in password for git auth
11 years ago
Jordi Boggiano
8e2b1c3e24
Merge pull request #2838 from timroberson/issue-2826
...
Add auth for private, non-GitHub repos (#2826 )
11 years ago
Jordi Boggiano
f233383de8
Merge pull request #2834 from vuhl/master
...
Fixing perforce driver/downloader bugs
11 years ago
Clark Stuth
a12c4e2a17
Removed getWindowsFlag and setWindowsFlag methods from Perforce object.
11 years ago
Tim Roberson
1f70148884
Change elseif to if.
11 years ago
Clark Stuth
3a3661a0b3
removing dead code lines and excess comments
11 years ago
Tim Roberson
db1e4b7574
Add auth for private, non-GitHub repos ( #2826 )
11 years ago
Jordi Boggiano
c96dedd19c
Merge pull request #2268 from schmkr/svnDriver-trunkPath-improvements
...
Improved the handling of trunkPath
11 years ago
Clark Stuth
c11105dd60
Fixing bug not cleaning up workspaces.
11 years ago
Clark Stuth
492539101c
got all unit tests passing
11 years ago
Clark Stuth
24dd42267f
almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods
11 years ago
Clark Stuth
0f7b078d6c
added new dependency to Perforce object, updating some tests.
11 years ago
Pádraic Brady
306ba77e93
Implement the RemoteFilesystem Factory everywhere...
...
- also fixes impacted test
11 years ago
Nils Adermann
b808ff5e28
Don't hardcode the URL to an https one either
11 years ago
Nils Adermann
edfaf727e5
When using the github driver with no-api don't reset to an ssh url
11 years ago
Jordi Boggiano
a612b2affe
Merge remote-tracking branch 'naderman/download-failover'
11 years ago
Nils Adermann
a80fde97d5
Make the github driver behave like git if "no-api" is specified.
11 years ago
Nils Adermann
35fbe3fd42
Download failover means we can now always try github zip urls for dist
11 years ago
Jordi Boggiano
eb3384445b
Merge pull request #2188 from Danack/GetRootComposerJson
...
Find root composer.json in zip artifact more reliably.
11 years ago
Danack
20a7dcd02c
Added explanation of why loop continues.
11 years ago
Danack
24aba5b51f
Moved file back to correct location. (+1 squashed commit)
...
Squashed commits:
[eec32aa] Updated detection to only allow composer.josn in root or first level dir.
11 years ago
Jordi Boggiano
432ace33d4
Clean up svn environment to fix OSX issues, fixes #2708 , refs #2146
11 years ago
Matthias Pigulla
beff1f5cc1
This should create relative/absolute dist URLs depending on the way (relative/absolute) the artifact directory path was given.
11 years ago
Luís Otávio Cobucci Oblonczyk
0f2c0ab389
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 years ago
Pascal Borreli
2f4df9d459
Fixed typos
11 years ago
Glen Mailer
3620796b7d
Ensure detected extensions have valid package names
11 years ago
Kim Laï Trinh
691f784f92
fix bug introduced in https://github.com/composer/composer/pull/2375
11 years ago
Jordi Boggiano
4e4fc257e6
Fix pear ctor, refs #2444
11 years ago
Jordi Boggiano
4fe35ae693
Fix vcs repo constructor, fixes #2444
11 years ago
Jérémy JOURDIN
fbadc19bf6
Add preFileDownload event on package.json fetch
11 years ago
Matthias Pigulla
f626f55f41
No need to create hg working copies just to parse tags/branches
11 years ago
Chris Smith
a892e6a3bd
Pass IO instance to ProcessExecutor for logging
11 years ago
Jordi Boggiano
d3ff302194
Merge pull request #2375 from gena01/github-ee
...
Fixing #728 Adding basic support for Github Enterprise
11 years ago
Carsten Brandt
f538acc4b0
added support for file:// url to repository
...
file:// is valid url even if it does not define a host.
allows to define a repo like this (local directory generated with
composer/satis):
```json
{
"repositories": [ { "type": "composer", "url": "file:///home/cebe/dev/jescali/xeno-core/core/repo" } ],
"require": {
...
}
}
```
11 years ago
Gennady Feldman
e5045ce215
Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports()
11 years ago
Gennady Feldman
93ebfd54b1
Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests.
11 years ago
Gennady Feldman
d8dbcab710
Refactoring my code to use a protected function to generate API Url.
11 years ago
Gennady Feldman
e78499d28d
First working version of GitHub Enterprise API.
11 years ago
Sebastian Schawohl
4198688f54
Change date format when getting log from mercurial
...
Use rfc3339date format instead of rfc822date to avoid exceptions from
DateTime constructor because of localized dates.
fix #2346
11 years ago
Jordi Boggiano
7f03fad391
Revert "Code cleanup, refs #2316"
...
This reverts commit 6e3cfb5fea
.
11 years ago
Jordi Boggiano
6e3cfb5fea
Code cleanup, refs #2316
11 years ago
Jordi Boggiano
7c83e6a04a
Merge remote-tracking branch 'GromNaN/git-cache'
11 years ago
Jordi Boggiano
f8be812a49
Merge remote-tracking branch 'origin/master'
11 years ago
Jordi Boggiano
ce8b475f4c
Minor tweaks to perforce support, refs #2329
11 years ago
Fabian Grutschus
a6823d2f9b
non-deep check returns allways false
11 years ago
Nils Adermann
4f51db72f8
hhvm version constant still called HPHP on older versions so use it for bc
11 years ago
Nils Adermann
4c8e8ca702
Allow specifying HHVM as a dependency
11 years ago
Jordi Boggiano
0fbb4cbd16
CS fixes and renaming a few methods, refs #2184
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
9a806658d6
Merge remote-tracking branch 'vuhl/master'
...
Conflicts:
src/Composer/Factory.php
11 years ago
Jérôme Tamarelle
f51aa4fad6
Add local cache for Git repositories
11 years ago
Nicolas Bastien
52711d121c
Remove unused use statement.
11 years ago
Marc
30049637dc
Set some phpdoc to isLocalUrl
11 years ago
schmkr
c4d7347ec5
Fixed a coding style issue
...
Missing a space between if and (
11 years ago
schmkr
652715f4c2
Improved the handling of trunkPath
...
- $this->baseUrl is only used if $this->trunkPath === false, otherwise
we will use $this->baseUrl with $this->trunkPath.
- scanning through trunkPath will now look for composer.json file
instead of a path that matches $this->trunkPath, beacuse checking
against the latter failed with deeper trunkPaths
- $this->rootIdentifier is now 'trunk' no matter how deep
$this->trunkPath is (with deeper trunkPaths, the name became something
like "dev-trunk-devel-team-packages-package"
11 years ago
mwhittom
2e737ac439
updated to replace double-quotes with single quotes
11 years ago
mwhittom
8207518e04
Updated to clean up code and rename variables to camelcase
11 years ago
Nils Adermann
92b1ee2f7a
Add a composer-plugin-api platform package and plugins must require it
11 years ago
mwhittom
774a55befd
Updated to match psr-2 spec, fixed header comments
11 years ago
matt-whittom
f737e49aae
Fixed issue with downloader assuming repository would be VcsRepository
11 years ago
matt-whittom
f3722a46ed
Updated comments
11 years ago
matt-whittom
dd81449998
Updated to remove vfsStreams (no longer needed by tests)
...
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom
1019c014e5
using theirs
11 years ago
matt-whittom
bab10dd9f8
Added ability to pass p4user and p4password in composer.json
11 years ago
matt-whittom
53d6fcd6d3
using theirs
11 years ago
matt-whittom
a5df2851ef
Finished cleanup of debug messages.
11 years ago
matt-whittom
43108b4692
Cleanup phase 1
...
Removed branches - only returning the "master"
11 years ago
matt-whittom
64bda65e11
Updated Perforce driver to use labels
...
dev checkin, lots of cleanup to do
11 years ago
matt-whittom
36dd7dfea5
Cleaned up perforce code
...
Checks to see if already logged in to Perforce, and prompts for password if not and P4PASSWD is not set
Checks server url with perforce call
Checks for composer.json file, and returns the contents of the file already retrieved.
11 years ago
matt-whittom
0d061f2530
Added Perforce to Composer
11 years ago
matt-whittom
a980228b76
Added Perforce VCS to Composer.
...
Added Perforce utility class, PerforceDriver and PeforceDownloader
Added PerforceDriverTest
Updated Factory, VcsRepository to incorporate Perforce classes.
Modified ArchivableFilesFinderTest to skip Mercurial test that does not work for me.
11 years ago
Jordi Boggiano
2bf90b544a
Fix parsing of trunk in SvnDriver, fixes composer/satis#88
11 years ago
Luís Otávio Cobucci Oblonczyk
0b77a59af6
Repository options must be replicated on package when dist file is under
...
repository base dir
11 years ago
Jordi Boggiano
d017e3f209
Adjust GitDriver tag parsing to resolve to SHAs
11 years ago
Danack
abfefd1faa
Improved variable name.
11 years ago
Danack
74b4bcd22e
Fix issue where none root composer.json could be used by ArtifactRepository http://www.php.net/manual/en/ziparchive.locatename.php#85512
11 years ago
Jordi Boggiano
e0051a4652
Update tests
11 years ago
Jordi Boggiano
444bdb2e25
Fix VCS drivers to always use identifiers and not tag names since those can change or disappear
11 years ago
Jordi Boggiano
1a50f74c4c
Improve reporting of github rate limiting errors, fixes #2183
11 years ago
Jordi Boggiano
bd345c3b43
Add IO to proc executor in a few more places to get more debug info out
11 years ago
Jordi Boggiano
ab709107e5
Fix detection of git bitbucket repos with incorrect URLs, fixes #2095
11 years ago
Christoph
8c3a84d9fd
fixed very evil 'tip' tag oversight in bitbucket driver
11 years ago
Jordi Boggiano
8d6f4307c8
Merge remote-tracking branch 'kriswallsmith/composite-repo-fix'
11 years ago
Christoph
6406e0d3b7
fixed Bitbucket's broken API
11 years ago
Kris Wallsmith
fa4b13d95a
fix when composite repo has no delegates
11 years ago
Jordi Boggiano
f79c4e4309
Detect safe_mode and output correct error, closes #2006
11 years ago
Jordi Boggiano
d498e73363
Merge pull request #2004 from jaypea/recursive_artifactrepository
...
ArtifactRepository needs recursive iteration
11 years ago
Jan Prieser
ba87cfc6d1
find artifacts recursively in given path
...
uses regex to filter file extension
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
Justin Rovang
60e95aed76
Added realpath to VcsDriver constructor
...
See https://github.com/composer/composer/pull/1828
11 years ago
Jordi Boggiano
b38db73611
Clean up rogue git env vars in case this is running in a git hook, refs #1832
11 years ago
Jordi Boggiano
5267bafa2c
Retry fetching composer.json files twice since github returns 404s at random at the moment
...
@bhuga confirmed it is the best approach until github finds a fix. /cc @gillesruppert enjoy whatever your bet wins you
12 years ago
Jordi Boggiano
3f2b9b4d4b
Avoid overwriting notification-url
12 years ago
Jordi Boggiano
4b26c627ff
Retry file downloads 3 times before giving up in case of basic network failure
12 years ago
Jordi Boggiano
a7e88f7a80
Unfold aliases in streamable repos since aliases are already loaded by the pool, refs #1346 , fixes #1851
12 years ago
Jordi Boggiano
5264d0637b
Fix regression added in 33af9eea95
, fixes #1841
12 years ago
Jordi Boggiano
33af9eea95
Always dump packages, even if only an alias is added, fixes #1809
12 years ago
Jordi Boggiano
faa419cc0e
Merge remote-tracking branch 'hason/alias'
12 years ago
Jordi Boggiano
895058d1ce
Merge remote-tracking branch 'spaun/master'
12 years ago
Jordi Boggiano
1b030a76d4
CS and wording fixes, refs #1728
12 years ago
Jordi Boggiano
e50173ff93
Merge remote-tracking branch 'nfx/artefact-repo-type'
12 years ago
Andrey Utkin
28c219311c
Rename module-path to package-path
12 years ago
Andrey Utkin
9022b0ae38
Default module path to empty string
12 years ago
Andrey Utkin
340e960614
Allow svn repositories to reside deeper than module root
12 years ago
Jordi Boggiano
313b79ee13
Implement search over description/keywords, refs #1801
12 years ago
Jordi Boggiano
3a612dca01
Only return search matches once, fixes #1801
12 years ago
Martin Hasoň
753a8345cb
Added support for the alias of an aliased package
12 years ago
Jordi Boggiano
d38eb244fa
Add PlatformRepository::PLATFORM_PACKAGE_REGEX to remove duplication
12 years ago
Jordi Boggiano
370a9a40fc
Add comment to clarify change
12 years ago
Jordi Boggiano
8401c78349
Merge pull request #1770 from sarunas/master
...
Moving svn driver to the last position as it causes conflicts with hg over http
12 years ago
Jordi Boggiano
2b385cbe58
Fix dependency flags not applying to provides/replaces, fixes #1771
12 years ago
Šarūnas Dubinskas
29b43ca082
Moving svn driver to the last position as it causes conflicts with hg over http
12 years ago
Serge Smertin
6cec5b0399
Added notice about need of zip extension
12 years ago
Serge Smertin
07920c48a6
Removed dev-master as default version for versionless artifact
12 years ago
Serge Smertin
b5e1457470
set version to dev-master to artifacts without version
12 years ago
Serge Smertin
f25bfe09c5
added support for nested location of composer.json files within artifacts
12 years ago
Serge Smertin
586911f7a1
added verbose logging for artifact directory scan
12 years ago
Serge Smertin
0aad11801e
added logging for wrong files
12 years ago
Serge Smertin
4b176f11f2
added artifact repository initial functionality
12 years ago
Jordi Boggiano
41392ace56
Check that a repo has no providers when getPackages is called to catch any mis-use
12 years ago
Jordi Boggiano
be861f090a
Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646
12 years ago
Jordi Boggiano
095852933e
Remove code duplication, add support for searchUrl
12 years ago
Jordi Boggiano
06026d6b93
Add @deprecated note
12 years ago
Jordi Boggiano
4207fc3b19
Refactor require-dev handling to use one single repository and a one pass solving, fixes #719 , fixes #1185 , fixes #1330 , fixes #789 , fixes #640
12 years ago
Jordi Boggiano
259a25344d
Use the api to get file contents instead of raw.github.com
...
raw.github does not like the access_token query param
12 years ago
Jordi Boggiano
573b7a0fb7
Only downgrade providers but not the notification url
12 years ago
Jordi Boggiano
f69418427f
Add lib-ICU platform package
12 years ago
Jordi Boggiano
15e9c3d101
Show proper error message when a git bitbucket repo is loaded as hg repo, refs composer/packagist#294
12 years ago
Jordi Boggiano
d4c9a9004a
Add support for the hashed provider includes
12 years ago
Jordi Boggiano
2c4c5dd764
Fail hard only after 3 failed attempts
12 years ago
Jordi Boggiano
b750e70f5f
Abort execution when a RepositorySecurityException is thrown
12 years ago
Jordi Boggiano
995dc40130
Make packagist downgrade out of ssl after fetching the main file, since the other files can be verified via sha256
12 years ago
Jordi Boggiano
211b69b38b
Adjust exception message
12 years ago
Jordi Boggiano
b59489f6ae
Merge remote-tracking branch 'edas/exception-on-broken-signature'
12 years ago
Jordi Boggiano
9521d1e7ad
Make use of new hashed provider filenames, fixes #1431 , refs composer/packagist#283
12 years ago
Eric Daspet
a8a99cee24
Fix RepositorySecurityException class name
12 years ago
Eric Daspet
59f8be3b92
Throw Exception on broken signature
...
This is related to issue #1562
With a fresh installation of Composer I had the following message:
> The contents of https://packagist.org/p/providers-latest.json do not
match its signature, this is most likely due to a temporary glitch but
could indicate a man-in-the-middle attack.
> Try running composer again and please report it if it still persists.
This was *probably* a temporary glitch, as the error did not appear
again, even after a full reinstallation of all packages.
*However* Composer had no way to differentiate a man-in-the-middle
attack and a temporary glitch. The installation / update did continue
despite the problem and files where installed / updates with no easy
rollback. These files may have been corrupted with malicious code and I
have no way to check they don't.
This is a *serious* security issue.
The code in [ComposerRepository line
434](https://github.com/composer/composer/blob/master/src/Composer/Repos
itory/ComposerRepository.php#L434) states
```php
// TODO throw SecurityException and abort once we are sure this can not
happen accidentally
````
Even if the broken signature may happen in accidentally in a standard
process, if it may be a security issue, we have to abort the procedure,
or at least ask for confirmation to the user. If it helps continuing
despite the temporary glitch, it may be possible to add a command line
switch like `--ignore-signature` to force the process to continue.
Proposed :
Send a RepositorySecurityException instead of the warning, even if this
may happen accidentally
12 years ago
Jordi Boggiano
17a5bdf162
Normalize github URLs generated by the GitHubDriver, fixes #1551
12 years ago
Jordi Boggiano
432955e0ae
Fix github url escaping, raw.github.com doesnt like escaped slashes
12 years ago
Jordi Boggiano
8904888a74
Add php-64bit package if the php version has 64bit ints, fixes #1506 , fixes #1511
12 years ago
Jordi Boggiano
514a3cde77
CS fixes
12 years ago
Jordi Boggiano
5b24a48827
Allow disabling svn branches/tags, fixes composer/satis#43
12 years ago
Jordi Boggiano
04c6670f0c
Detect invalid ssh URLs, fixes #1124
12 years ago
Jordi Boggiano
224934831d
Change all github archive URLs to API URLs and handle fallback for those to nodeload
12 years ago
Chris Smith
120f52c632
Generate private zipball urls for private repositories
12 years ago
Christoph
cebd43e735
fixed detection of inactive branches in hg
12 years ago
Jordi Boggiano
a8f74a0983
Allow notification from locked installs, fixes #1368 , fixes #1372 , fixes #1369
12 years ago
Jordi Boggiano
e868c9706b
Add support for batch notifications
12 years ago
Raphael Kallensee
9713bf8bec
Fix for PearRepository scheme handling, broke ChannelReaderTest.
12 years ago
Raphael Kallensee
0be2fd12e4
Fix for PEAR package downloading in PearRepository: now using https as
...
scheme if the PEAR channel uses https. The old behavior broke installing
PEAR packages from https-only PEAR channels.
12 years ago
Jordi Boggiano
15475f0ef2
Rename cache dirs to consolidate them by purpose
12 years ago
Jordi Boggiano
326fcbcab7
Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923
12 years ago
Jordi Boggiano
172414a1f0
Add support for ~/+ in addition to - as separator between PHP version and build details, fixes #1322
12 years ago
Jordi Boggiano
4f5d08e2ad
Add InvalidRepositoryException
12 years ago
Igor Wiedler
4959c2bdc6
Replace references of a11n with a12n where appropriate
...
Authorization => Authentication.
12 years ago
Jordi Boggiano
cbd91b5952
Fix FILTER_VALIDATE_URL not supporting IDNs
12 years ago
Jordi Boggiano
0c61e9d345
Add warning/errors flags to VCS repo output
12 years ago
Jordi Boggiano
dae7f3cee7
Add a way to know if any branch failed loading
12 years ago
Jordi Boggiano
61bd34df55
Make sure error output is clearly visible
12 years ago
Jordi Boggiano
967c771b26
Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches
12 years ago
Jordi Boggiano
1682532b80
Update code to use new github archive URLs
12 years ago
Jordi Boggiano
bb701da8c2
Do not overwrite output in verbose mode
12 years ago
Martin Hasoň
45c1c3f881
Fixed package name for stability test in ComposerRepository
12 years ago
Bilal Amarni
b10c832be0
fixed a typo
12 years ago
Jordi Boggiano
2b06503027
SvnDriver fixes
12 years ago
Pascal Borreli
83fd3967f0
Fixed PHPDoc
12 years ago
Pascal Borreli
5eead93250
Fixed typos
12 years ago
Jordi Boggiano
125ff3e4f5
Fix root aliasing with new providers repo format
12 years ago
Jordi Boggiano
ad9f887edd
Clarify error message to sound less scary until we can guarantee it
12 years ago
Chris Smith
9ed481ef02
Fix handling of legacy Composer repositories
12 years ago
Jordi Boggiano
e887f6cea9
Fix CS
12 years ago
Jordi Boggiano
89d4df990a
Use JsonFile to decode cached entries
12 years ago