1
0
Fork 0
Commit Graph

654 Commits (43c1caad0d1690458765cf542a164fe242f51fce)

Author SHA1 Message Date
Jordi Boggiano 0c343f925a Clarify code 2014-05-14 11:25:20 +02:00
Tristan Lins a4d43ee860 Implement ComposerRepository::findPackage and ComposerRepository::findPackages. 2014-05-13 23:54:48 +02:00
Jordi Boggiano 2a7a954f62 Handle multiple urls in package transport options 2014-05-07 19:34:46 +02:00
Jordi Boggiano b6981d09e8 Fix handling of origin url in composer repository class 2014-05-07 19:34:43 +02:00
Jordi Boggiano 31b787249c More fixes to mirror support 2014-05-07 19:34:40 +02:00
Jordi Boggiano 44e45ed2d5 Add support for lazy providers/proxies 2014-05-07 19:34:36 +02:00
Jordi Boggiano 77163f66fc Add support for mirrors in composer repos 2014-05-07 19:34:35 +02:00
Jordi Boggiano e707dcd92f Also load transport options in filesystem repositories to avoid loss from the installed repo, refs #2189 2014-05-07 19:29:59 +02:00
Jordi Boggiano faeb706de6 Handle alias packages properly, refs #2189 2014-05-07 19:10:55 +02:00
Jordi Boggiano 32cd883daa Rename options to transport-options, refs #2189 2014-05-07 18:25:28 +02:00
Jordi Boggiano 016a016455 Merge remote-tracking branch 'lcobucci/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2014-05-07 18:02:46 +02:00
Jordi Boggiano eebffacd9f Use pagination to get tags/branches from the github API 2014-04-24 16:41:42 +02:00
schmkr 8dd6b052ce Updating SvnDriver trunk revision check
Not checking revision of composer.json, but from its parent directory.

See composer/composer#2849
2014-04-15 23:56:45 +02:00
Jordi Boggiano b437c1cc05 Support github auth directly in the RemoteFilesystem class 2014-04-11 14:29:17 +02:00
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.
2014-04-10 13:26:26 -05:00
Paul Tarjan ddec582ca1 use HHVM_VERSION
this one is better (they are the same)
2014-04-09 15:40:12 -07:00
Jordi Boggiano e7b82cdd88 Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320 2014-04-09 15:37:50 +02:00
Alex Romanenko 5078d7c4fb Fix space in password for git auth 2014-03-31 09:39:58 +04:00
Jordi Boggiano 8e2b1c3e24 Merge pull request #2838 from timroberson/issue-2826
Add auth for private, non-GitHub repos (#2826)
2014-03-28 14:32:06 +01:00
Jordi Boggiano f233383de8 Merge pull request #2834 from vuhl/master
Fixing perforce driver/downloader bugs
2014-03-26 18:28:52 +01:00
Clark Stuth a12c4e2a17 Removed getWindowsFlag and setWindowsFlag methods from Perforce object. 2014-03-25 08:30:44 -05:00
Tim Roberson 1f70148884 Change elseif to if. 2014-03-24 11:03:44 -04:00
Clark Stuth 3a3661a0b3 removing dead code lines and excess comments 2014-03-24 09:43:45 -05:00
Tim Roberson db1e4b7574 Add auth for private, non-GitHub repos (#2826) 2014-03-24 09:01:35 -04:00
Jordi Boggiano c96dedd19c Merge pull request #2268 from schmkr/svnDriver-trunkPath-improvements
Improved the handling of trunkPath
2014-03-23 23:22:39 +01:00
Clark Stuth c11105dd60 Fixing bug not cleaning up workspaces. 2014-03-21 13:51:18 -05:00
Clark Stuth 492539101c got all unit tests passing 2014-03-21 13:51:18 -05:00
Clark Stuth 24dd42267f almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods 2014-03-21 13:51:18 -05:00
Clark Stuth 0f7b078d6c added new dependency to Perforce object, updating some tests. 2014-03-21 13:51:18 -05:00
Nils Adermann b808ff5e28 Don't hardcode the URL to an https one either 2014-02-25 15:57:35 +01:00
Nils Adermann edfaf727e5 When using the github driver with no-api don't reset to an ssh url 2014-02-25 15:55:44 +01:00
Jordi Boggiano a612b2affe Merge remote-tracking branch 'naderman/download-failover' 2014-02-25 13:25:27 +01:00
Nils Adermann a80fde97d5 Make the github driver behave like git if "no-api" is specified. 2014-02-24 19:36:56 +01:00
Nils Adermann 35fbe3fd42 Download failover means we can now always try github zip urls for dist 2014-02-24 18:53:34 +01:00
Jordi Boggiano eb3384445b Merge pull request #2188 from Danack/GetRootComposerJson
Find root composer.json in zip artifact more reliably.
2014-02-21 11:33:01 +01:00
Danack 20a7dcd02c Added explanation of why loop continues. 2014-02-21 09:54:42 +00:00
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.
2014-02-21 09:46:12 +00:00
Jordi Boggiano 432ace33d4 Clean up svn environment to fix OSX issues, fixes #2708, refs #2146 2014-02-19 10:55:00 +01:00
Matthias Pigulla beff1f5cc1 This should create relative/absolute dist URLs depending on the way (relative/absolute) the artifact directory path was given. 2014-02-18 23:28:45 +01:00
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2013-12-29 00:37:08 +00:00
Pascal Borreli 2f4df9d459 Fixed typos 2013-12-27 11:51:01 +00:00
Glen Mailer 3620796b7d Ensure detected extensions have valid package names 2013-12-16 08:51:19 +00:00
Kim Laï Trinh 691f784f92 fix bug introduced in https://github.com/composer/composer/pull/2375 2013-11-28 17:53:05 +01:00
Jordi Boggiano 4e4fc257e6 Fix pear ctor, refs #2444 2013-11-22 10:11:04 +01:00
Jordi Boggiano 4fe35ae693 Fix vcs repo constructor, fixes #2444 2013-11-22 10:05:08 +01:00
Jérémy JOURDIN fbadc19bf6 Add preFileDownload event on package.json fetch 2013-11-19 17:45:28 +01:00
Matthias Pigulla f626f55f41 No need to create hg working copies just to parse tags/branches 2013-11-15 13:05:04 +01:00
Chris Smith a892e6a3bd Pass IO instance to ProcessExecutor for logging 2013-11-06 21:37:20 +00:00
Jordi Boggiano d3ff302194 Merge pull request #2375 from gena01/github-ee
Fixing #728 Adding basic support for Github Enterprise
2013-10-31 15:19:08 -07:00
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": {
        ...
	}
}
```
2013-10-30 17:46:35 +01:00
Gennady Feldman e5045ce215 Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports() 2013-10-29 11:07:52 -04:00
Gennady Feldman 93ebfd54b1 Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests. 2013-10-28 15:57:02 -04:00
Gennady Feldman d8dbcab710 Refactoring my code to use a protected function to generate API Url. 2013-10-28 15:38:28 -04:00
Gennady Feldman e78499d28d First working version of GitHub Enterprise API. 2013-10-28 12:40:51 -04:00
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
2013-10-18 16:41:54 +02:00
Jordi Boggiano 7f03fad391 Revert "Code cleanup, refs #2316"
This reverts commit 6e3cfb5fea.
2013-10-16 18:07:09 +02:00
Jordi Boggiano 6e3cfb5fea Code cleanup, refs #2316 2013-10-16 15:55:53 +02:00
Jordi Boggiano 7c83e6a04a Merge remote-tracking branch 'GromNaN/git-cache' 2013-10-16 15:16:48 +02:00
Jordi Boggiano f8be812a49 Merge remote-tracking branch 'origin/master' 2013-10-16 10:57:18 +02:00
Jordi Boggiano ce8b475f4c Minor tweaks to perforce support, refs #2329 2013-10-16 10:53:57 +02:00
Fabian Grutschus a6823d2f9b non-deep check returns allways false 2013-10-16 10:07:10 +02:00
Nils Adermann 4f51db72f8 hhvm version constant still called HPHP on older versions so use it for bc 2013-10-14 15:57:19 -07:00
Nils Adermann 4c8e8ca702 Allow specifying HHVM as a dependency 2013-10-14 15:57:19 -07:00
Jordi Boggiano 0fbb4cbd16 CS fixes and renaming a few methods, refs #2184 2013-10-11 20:21:34 -03:00
Jordi Boggiano 11a0d16ccc CS fixes 2013-10-11 20:12:45 -03:00
Jordi Boggiano 9a806658d6 Merge remote-tracking branch 'vuhl/master'
Conflicts:
	src/Composer/Factory.php
2013-10-11 20:06:34 -03:00
Jérôme Tamarelle f51aa4fad6 Add local cache for Git repositories 2013-10-10 22:28:01 +02:00
Nicolas Bastien 52711d121c Remove unused use statement. 2013-10-07 17:11:57 +02:00
Marc 30049637dc Set some phpdoc to isLocalUrl 2013-09-26 01:57:21 +02:00
schmkr c4d7347ec5 Fixed a coding style issue
Missing a space between if and (
2013-09-16 22:13:37 +02:00
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"
2013-09-16 18:10:24 +02:00
mwhittom 2e737ac439 updated to replace double-quotes with single quotes 2013-09-09 14:48:24 -05:00
mwhittom 8207518e04 Updated to clean up code and rename variables to camelcase 2013-09-09 12:45:50 -05:00
Nils Adermann 92b1ee2f7a Add a composer-plugin-api platform package and plugins must require it 2013-09-05 15:47:05 +02:00
mwhittom 774a55befd Updated to match psr-2 spec, fixed header comments 2013-09-04 09:24:49 -05:00
matt-whittom f737e49aae Fixed issue with downloader assuming repository would be VcsRepository 2013-09-04 09:10:45 -05:00
matt-whittom f3722a46ed Updated comments 2013-09-04 09:10:44 -05:00
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
2013-09-04 09:10:44 -05:00
matt-whittom 1019c014e5 using theirs 2013-09-04 09:10:43 -05:00
matt-whittom bab10dd9f8 Added ability to pass p4user and p4password in composer.json 2013-09-04 09:10:42 -05:00
matt-whittom 53d6fcd6d3 using theirs 2013-09-04 09:10:42 -05:00
matt-whittom a5df2851ef Finished cleanup of debug messages. 2013-09-04 09:10:42 -05:00
matt-whittom 43108b4692 Cleanup phase 1
Removed branches - only returning the "master"
2013-09-04 09:10:42 -05:00
matt-whittom 64bda65e11 Updated Perforce driver to use labels
dev checkin, lots of cleanup to do
2013-09-04 09:10:41 -05:00
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.
2013-09-04 09:10:41 -05:00
matt-whittom 0d061f2530 Added Perforce to Composer 2013-09-04 09:10:41 -05:00
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.
2013-09-04 09:10:41 -05:00
Jordi Boggiano 2bf90b544a Fix parsing of trunk in SvnDriver, fixes composer/satis#88 2013-08-31 15:25:00 +02:00
Luís Otávio Cobucci Oblonczyk 0b77a59af6 Repository options must be replicated on package when dist file is under
repository base dir
2013-08-19 04:40:54 -03:00
Jordi Boggiano d017e3f209 Adjust GitDriver tag parsing to resolve to SHAs 2013-08-19 01:21:45 +02:00
Danack abfefd1faa Improved variable name. 2013-08-18 22:57:26 +01:00
Danack 74b4bcd22e Fix issue where none root composer.json could be used by ArtifactRepository http://www.php.net/manual/en/ziparchive.locatename.php#85512 2013-08-18 22:37:18 +01:00
Jordi Boggiano e0051a4652 Update tests 2013-08-18 23:03:48 +02:00
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 2013-08-18 22:56:18 +02:00
Jordi Boggiano 1a50f74c4c Improve reporting of github rate limiting errors, fixes #2183 2013-08-16 18:24:01 +02:00
Jordi Boggiano bd345c3b43 Add IO to proc executor in a few more places to get more debug info out 2013-08-10 02:44:11 +02:00
Jordi Boggiano ab709107e5 Fix detection of git bitbucket repos with incorrect URLs, fixes #2095 2013-07-26 15:55:18 +02:00
Christoph 8c3a84d9fd fixed very evil 'tip' tag oversight in bitbucket driver 2013-07-09 16:37:12 +02:00
Jordi Boggiano 8d6f4307c8 Merge remote-tracking branch 'kriswallsmith/composite-repo-fix' 2013-06-26 16:23:36 +02:00
Christoph 6406e0d3b7 fixed Bitbucket's broken API 2013-06-25 02:06:26 +02:00