Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make svn based dependencies work flawless if project itself is svn managed #2307

Closed
Flyingmana opened this issue Oct 6, 2013 · 3 comments
Closed
Labels
Milestone

Comments

@Flyingmana
Copy link
Contributor

Had just a case in irc composer-dev, where a install/update of a package did fail with an

Package could not be downloaded, svn: E155000: Revision 4782 doesn't match existing revision 3152 in ....

problem occurred, because the project itself is managed via svn and the dependency got fetched via svn, too.
I assume some conflict with how svn manages external svn repositories inside of an project.

full paste of composer install -vvv:
http://pastebin.com/6LggFrMc

@thekabal
Copy link

thekabal commented Oct 6, 2013

This was inside an install of the SVN version of Blacknova Traders (available at sourceforge). After much struggling, I followed Flyingmana's advice, and made a "clean" directory for composer outside of the project, and grabbed the latest versions that way. It worked! I then copied over the vendor directory from the "clean" composer directory, and after a few struggles with SVN, I was able to update the project to the latest versions.

Hope this helps someone else determine a cause and maybe a solution!

@oliver-graetz
Copy link

I suppose that your problem came from trying to use a package of the "svn" type inside another repository. Composer will then checkout another repo inside your repo which leads to "obstructing working copy" and other strange problems.

The clean solution: You should set svn:ignore for your vendors directory and not try to commit its contents to the outer SVN repo. Instead, you use composer install not only on your development machine but also on the deployment server.

But this doesn't help if you don't have command line access on the deployment machine and cannot run composer install there. This is why some people including me have demanded an SvnExportDownloader (#1716) to be provided. You could vote for that issue.

@Seldaek
Copy link
Member

Seldaek commented Apr 12, 2016

See https://packagist.org/packages/linearsoft/composer-svn-export which hopefully fixes it.

@Seldaek Seldaek closed this as completed Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants