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

Problems checking out the develop branch on Windows (Filename too long) #259

Closed
sschuberth opened this issue May 4, 2016 · 8 comments
Closed

Comments

@sschuberth
Copy link
Collaborator

I'm having trouble checking out the develop branch on Windows:

error: unable to create file tests/packagedcode/data/maven/longtest/expected/com/google/collect/com.springsource.com.google.common.collect/0.5.0.alpha/com.springsource.com.google.common.collect-0.5.0.alpha.pom.bz2 (Filename too long)

While I agree this Windows-specific limitation is annoying, is there some easy fix to shorten the path? The part com/google/collect/com.springsource.com.google.common.collect looks somewhat redundant.

@pombredanne
Copy link
Member

@sschuberth Thanks. This is an easy fix. I am surprised this was not caught by the test runs on appveyor
https://ci.appveyor.com/project/nexB/scancode-toolkit

@sschuberth
Copy link
Collaborator Author

That's probably because AppVeyor clones to a directory that is closer to the root. But as soon as you have some directories in between you'll exceed the path limit.

pombredanne added a commit that referenced this issue May 4, 2016
@pombredanne
Copy link
Member

@sschuberth This should be fixed now. Could you give it a shot?

@sschuberth
Copy link
Collaborator Author

Works for me now, thanks!

@sschuberth
Copy link
Collaborator Author

I'm again having a problem with this, the offending paths being

tests/packagedcode/data/m2/e/com/google/collect/com.springsource.com.google.common.collect/0.5.0.alpha/com.springsource.com.google.common.collect-0.5.0.alpha.pom.bz2
tests/packagedcode/data/m2/r/com/google/collect/com.springsource.com.google.common.collect/0.5.0.alpha/com.springsource.com.google.common.collect-0.5.0.alpha.pom.bz2

Do you see a change to shorten these paths again, too?

@sschuberth sschuberth reopened this Oct 12, 2016
@pombredanne
Copy link
Member

@sschuberth sorry I had missed your comment here. The difficult thing is that I was trying to reproduce a faithful maven directory tree. But I guess this could put in a tarball to avoid problems. Or just mock shorter paths in this only case.

@sschuberth
Copy link
Collaborator Author

It's probably not worth to address the issue if I'm the only one having these problems (due to the long path name of the parent folder I use for my GitHub projects). Also AppVeyor CI passes. I've anyway worked around this by now by using a shortcut from my usual path to a special short path for ScanCode. So I'll just close this again, but it's still good to have this conversation for the record.

pombredanne added a commit that referenced this issue Dec 6, 2016
 * path length limitations may prohibit a clean git checkout
   when the clonning directory hass already some depth.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Member

well I committed a quick fix anyway before seeing your comment ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants