-
Notifications
You must be signed in to change notification settings - Fork 316
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
CocoaPods can't find local podspecs #5175
Comments
I was trying to recall our decision for not parsing
But yes, we could still look for a The latter is actually the way we should probably do it for all package managers that support lockfiles (which can be parsed conveniently incl. the dependency hierarchy, an which offer an efficient way to create lockfiles without actually installing all dependencies, for performance reasons). |
Another reasons for not parsing package manager lock files:
Maybe ORT should offer its users package analysis options such as:
Thoughts? |
As a side question, wouldn't it be fair if ORT just did what the package manager alone would do in this case? After all we want to capture what goes into the build. Like, what does NPM do in this case, does it use the |
I believe what NPM does depends on the version you are using in your build... Not sure if a generic solution on your side would therefore be the best. I have my team commit all lock files and try to run commands like I'm not sure if there is 1 single correct solution, especially in case of packaging tools in docker, because then you would be telling us which version of a specific tool is going to be used... So again, my preference would be the fast version and to let me handle to correctness of my lock-files. But I can see validity in the other variants as well... Edit: Maybe you can make it a prerequisite for ORT to have run all package-managers before running ORT? |
This could probably be similarly solved to 4bbd26a. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
Closed as part of backlog grooming. Feel free to comment if you would like to contribute to this. |
Analyzing CocoaPods uses
pod spec which
to find the location of a podspec file. Unfortunately CP only resolved the path if the pod is known in (one of) its repositories.If a pod is included locally, the path is actually defined in the
Podfile.lock
, so imho there is no need to usepod spec which
.Eg in our
Podfile
we have:And
node_modules/react-native/scripts/react_native_pods.rb
then contains (snippet):This then gives us a
Podfile.lock
like this (snippet):Wouldn't it be easier (and faster) to try to retrieve the podspecs from this file and use
pod spec which
as a fallback? Running that would still be required for egboost-for-react-native
andGCDWebServer
from the above snippet.The text was updated successfully, but these errors were encountered: