-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
pod install repeatedly fails trying to understand .git/tags_lock #4715
Comments
A few more notes:
|
Ugh, it's my bad. I have a script based on: http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html ...that does this in post-checkout in my Git template: #!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
dir="`git rev-parse --git-dir`"
mkdir .git/tags_lock 2>/dev/null || exit 0
trap "rmdir .git/tags_lock; rm -f .git/tags.$$" EXIT
git ls-files | \
ctags --tag-relative -L - -f"$dir/$$.tags" --extra=+qf --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags" I think the file copy in CocoaPods races the tags script and trips over the lock file. |
So if you remove the post-checkout, it works fine for you? |
It works, but this is something I like having be automatic for all of my Git repos, since it's part of my template. I'm trying to make it just not run the ctags script if the Git repo is private, by just not running the script if A couple things on CocoaPods end might help:
|
Honestly, I'm not sure what the right answer here is. |
What do you think of making a PR to cocoapods-downloader that passes a blank template argument? |
I’ve actually started looking into that, just it may take some time because I’m not really that much of a Ruby expert, and not that familiar with using a CocoaPods of my own development. cocoapods-downloader is the best place? |
yup |
Command
Report
See above. Just trying to install. (--no-repo-update was added to shorten the time for each attempt; I did let it update the first few times)
Updates and installs.
The crash listed below. Repeatedly. Sometimes, it manages to work for one Pod, but then breaks on the next one.
Also fails with the Git that comes with Xcode 7.2.
Stack
Plugins
Podfile
Error
The text was updated successfully, but these errors were encountered: