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

v2.0.0 adds CWD as an absolute path which can conflict with local sources #67

Open
mikehaney24 opened this issue Jun 2, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@mikehaney24
Copy link

mikehaney24 commented Jun 2, 2020

In 1.6.0, the cwd wasn't added to the list of local sources (AFAICT), but in v2.0.0, the cwd is added as an absolute path, so if you specify local sources, they can be at odds with each other.

In v2.0.0, I cannot generate my project and the following error is printed:

Generating GoogleDataTransportCCTSupport in `gen/GoogleDataTransportCCTSupport`
[!] There are multiple dependencies with different sources for `GoogleDataTransportCCTSupport` in `CocoaPods.podfile.yaml`:

- GoogleDataTransportCCTSupport/Tests-Integration (from `../../GoogleDataTransportCCTSupport.podspec`)
- GoogleDataTransportCCTSupport/Tests-Monkey (from `../../GoogleDataTransportCCTSupport.podspec`)
- GoogleDataTransportCCTSupport/Tests-Unit (from `../../GoogleDataTransportCCTSupport.podspec`)
- GoogleDataTransportCCTSupport/TestApp (from `../../GoogleDataTransportCCTSupport.podspec`)
- GoogleDataTransportCCTSupport (from `../../GoogleDataTransportCCTSupport.podspec`)
- GoogleDataTransportCCTSupport/TestApp (from `/Users/haneym/coding/firebase-ios-sdk/GoogleDataTransportCCTSupport.podspec`)

Steps to reproduce: (assuming cocoapods and cocoapods-generate is installed):

brew install protobuf nanopb-generator
easy_install --user protobuf
git clone [email protected]:firebase/firebase-ios-sdk.git
cd firebase-ios-sdk
GDT_DEV=1 pod gen GoogleDataTransportCCTSupport.podspec --auto-open --gen-directory=firebase-ios-sdk/gen --local-sources=firebase-ios-sdk --clean --verbose --platforms=ios,macos,tvos
@segiddins
Copy link
Contributor

Do you think this mightve been caused by ad65284 ?

@segiddins segiddins added the bug Something isn't working label Jun 4, 2020
@mikehaney24
Copy link
Author

That definitely seems like a likely candidate, but I also have no idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants