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

Incorrect / misleading documentation about CP_HOME_DIR #12339

Closed
wujek-srujek opened this issue Apr 10, 2024 · 2 comments
Closed

Incorrect / misleading documentation about CP_HOME_DIR #12339

wujek-srujek opened this issue Apr 10, 2024 · 2 comments

Comments

@wujek-srujek
Copy link

Report

What did you do?

I read the documentation FAQ section.

Here: https://guides.cocoapods.org/using/faq.html, under 'Can I change the default CocoaPods repositories folder' it says that using CP_HOME_DIR changes both repo and caches directory, but this is not correct - both by observing the behavior, and also evidenced by the comment here: #9225 (comment)

Please update the documentation to be correct.

What did you expect to happen?

I expected to get correct information.

What happened instead?

I got incorrect / misleading information.

CocoaPods Environment

Any.

Project that demonstrates the issue

No project necessary.

@Vyazovoy
Copy link

I'm not sure that the described issue does exist.
Here is a simple experiment that you can run in your project:

rm -rf Pods
mkdir .cocoapods
CP_HOME_DIR=.cocoapods bundle exec pod install

Here is what I see in my directory tree:
Screenshot 2024-04-11 at 11 14 51

So, looks like the environment variable does what it supposed to.

@wujek-srujek
Copy link
Author

I apologize, you are right.

In my case, as I was testing it the first time, the pods were already available in the project in the Pods/ subfolder, so removing ~/Library/Caches/CocoaPods and running pod install didn't create the caches dir. This got me searching and then I found the comment in one of the issues, which reassured me in my fallacy.

Now I tested again, after cleaning everything everywhere, and you are right, CP_HOME_DIR does contain both the repos and the caches.

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