Closed macblazer closed 2 years ago
I just realized that when invoking cyclonedx-cocoapods
from a different working directory and using the --path
parameter, this code for gathering the additional details will fail with an error that it can't find the sandbox directory.
PR #25 includes the initialization of the CocoaPods Config
object with the specified path which fixes this problem.
Thank you for the PR. Much appreciated.
Fixes #11 Fixes #12 Fixes #13
Reading all of the information from the installed local copy of the external pod thanks to the CocoaPods project code. Writing the information to the bom did not have to change since it is in the same format as standard repository based pods.
I added the
file_name
purl qualifier for local pods. The reason I did this is that the purl specification saysWithout this extra designation there is no way to tell a local pod from a pod in the default CocoaPods repository list. Here is a made up example of two different CocoaPods purls without the
file_name
qualifier for a local pod:Now the same thing with the file_name qualifier:
By adding the file_name qualifier it is very easy to understand that the local pod is local and within a folder named ./incubator/MyLocalPod in the local project.