После попытки Satis на моем личном SVN-сервере (Linux, Svn, Apache 2, SSL, LDAP, DAV) это работает нормально; Я пытаюсь заставить его работать на SVN-сервере моей компании (Windows, Visual SVN, SSL).
В обоих случаях Satis работает под Linux; Моя Ubuntu, а моя компания CentOs.
В экземпляре Satis моей компании он может просматривать репозиторий, он может получить composer.json проекта, но не получит сам проект на том же уровне, что и composer.json.
Вот анонимизированная версия contrib.json:
{
"name": "MyCompany",
"homepage": "http://my-server.net/satis",
"repositories": [
{
"type": "svn",
"url": "https://my-other-server.net/svn/my-project"}
],
"config": {
"http-basic": {
"my-other-server.net": {
"username": "my-readonly-username",
"password": "my-readonly-password"}
}
},
"archive": {
"directory": "dist",
"format": "tar",
"prefix-url": "http://my-server.net/satis/"},
"require-all": true
}
Вот анонимная версия проекта composer.json:
{
"name": "mycompany/project",
"type": "symfony-bundle",
"description": "Project 1.0",
"keywords": [ "project" ],
"homepage": "http://my-company.fr/project",
"licence": "proprietary",
"version": "1.0",
"authors": [
{
"name": "My team",
"email": "[email protected]"}
],
"require": {
"php": ">=5.4"},
"autoload": {
"psr-4": { "Mycompany\\ProjectBundle\\": "" }
}
}
Вот как я выполняю Satis:
php bin/satis build mycompany.json web -vvv
И наконец, вот анонимный подробный результат Satis:
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Executing command (CWD): hg branch
Executing command (CWD): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /root/.composer/composer.json
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
Scanning packages
Executing command (CWD): svn ls --verbose --non-interactive --username 'my-readonly-username' --password 'my-readonly-password' 'https://my-other-server.net/svn/my-project/trunk'
Executing command (CWD): svn ls --verbose --non-interactive --username 'my-readonly-username' --password 'my-readonly-password' 'https://my-other-server.net/svn/my-project/branches'
Executing command (CWD): svn ls --verbose --non-interactive --username 'my-readonly-username' --password 'my-readonly-password' 'https://my-other-server.net/svn/my-project/tags'
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Reading composer.json of mycompany/project (trunk)
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Importing branch trunk (dev-trunk)
Selected mycompany/project (dev-trunk)
Creating local downloads in 'web/dist'
Dumping 'mycompany/project-9999999-dev'.
- Installing mycompany/project (dev-trunk)
Checking out /trunk/@4
Failed: [RuntimeException] Package could not be downloaded, svn: OPTIONS de 'https://my-other-server.net/svn/project/trunk': Échec à l'autorisation (https://my-other-server.net)
[RuntimeException]
Пакет не может быть загружен, svn: OPTIONS de ‘https://my-other-server.net/svn/project/trunk‘: Échec à l’autorisation (https://my-other-server.net)
Exception trace:
() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php:91
Composer\Downloader\SvnDownloader->execute() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php:33
Composer\Downloader\SvnDownloader->doDownload() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php:66
Composer\Downloader\VcsDownloader->download() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/DownloadManager.php:201
Composer\Downloader\DownloadManager->download() at /srv/satis/vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php:144
Composer\Package\Archiver\ArchiveManager->archive() at /srv/satis/src/Composer/Satis/Command/BuildCommand.php:410
Composer\Satis\Command\BuildCommand->dumpDownloads() at /srv/satis/src/Composer/Satis/Command/BuildCommand.php:159
Composer\Satis\Command\BuildCommand->execute() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:253
Symfony\Component\Console\Command\Command->run() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at /srv/satis/src/Composer/Satis/Console/Application.php:52
Composer\Satis\Console\Application->doRun() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /srv/satis/bin/satis:9
build [--no-html-output] [--skip-errors] [file] [output-dir] [packages1] ... [packagesN]
Другие элементы:
Ничто из этого не изменило ничего (кроме, может быть, кофе).
Задача ещё не решена.
Других решений пока нет …