Cocoapods: PivotalCoreKit Long Directory Name break

Created on 8 Jun 2016  Â·  16Comments  Â·  Source: CocoaPods/CocoaPods

Report

Original issue filed with PivotalCoreKit here: https://github.com/pivotal/PivotalCoreKit/issues/191

What did you do?

Updated our podfile dependencies ('pod update')

What did you expect to happen?

Install all pod dependencies correctly

What happened instead?

We received an error ‘ENAMETOOLONG’ for installing our PivotalCoreKit pod as shown in attached images

fe855462-2990-11e6-9922-c95140ba0d8b
fe7e7ebc-2990-11e6-8cbf-22dc4f670a79
fe7d3dae-2990-11e6-9050-0e57139cefcd

easy confirmed defect

Most helpful comment

There's an open PR addressing this now

All 16 comments

Could you please share the error reporting, including the used Podfile as text — that way folks won't have to retype it when trying to reproduce

Maybe @mrackwitz wants to check this one out — I'm thinking beyond a certain length the auto generated name becomes non-human readable anyway and we could switch to a different format (hash of the full name?).

I _think_ turning off de-duplicating targets removes the fancy names

Dang! @orta is right. That's a problem with the names generated by the target deduplication to differentiate the targets. Maybe we should just use numbers all together?

As an alternative workaround you could also share the same subspecs across both targets.

I am having the same issue, and can not share all the subspaces across targets, as different subspecs in the pod target different platform sets, and each target in my podfile is platform specific.

@neonichu attached are the Podfile and the error as text, thanks for looking into this!

Podfile.txt
pod_install_error.txt

@neonichu Is there any update on this?
the input seems to be provided.

We know the problem, but no-one has worked on this yet I'm afraid. This is the crux of the problem:

That's a problem with the names generated by the target deduplication to differentiate the targets.

re:

Maybe we should just use numbers all together?

Could we do it if it's over _x_ chars? E.g. 60?

@orta could do that, or take an MD5 sum if it's over x chars as well

@orta @segiddins any eta on this fix? it looks like you have an idea of what approach to take...

No ETA yet, but I've a work in progress fix, I'll put up soon.

@mrackwitz thanks!

bump @mrackwitz

Hey guys, is there an update on this?

I have a common problem, when use a private repos?

There's an open PR addressing this now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evermeer picture evermeer  Â·  3Comments

lzwjava picture lzwjava  Â·  3Comments

steffendsommer picture steffendsommer  Â·  3Comments

marzapower picture marzapower  Â·  3Comments

pronebird picture pronebird  Â·  3Comments