[swift-users] Problems building with dependency
swiftstudies at icloud.com
Thu Mar 17 12:21:11 CDT 2016
Ah that's good to know... I assume 1.8.4 is what is installed along with the XCode command line tools.. What's the best way to upgrade the version without upsetting XCode?
On Mar 17, 2016, at 04:50 PM, Max Howell <max.howell at apple.com> wrote:
I have a package I am building that I have introduced a dependency for, but swift build is failing. It looks like a git error:
gbn-sstudies-mv:SmarkDown sstudies$ swift build
/usr/local/bin/git -C /Users/sstudies/Documents/Code/Swift/SPM/Packages/SmarkDown/Packages/Duration fetch --tags origin
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
error: exit(129): git -C /Users/sstudies/Documents/Code/Swift/SPM/Packages/SmarkDown/Packages/Duration fetch --tags origin
Is it a git version issue? git --version reveals 1.8.4 which is being picked up from /usr/local/bin/git
Please let me know if you need more information
We depend on at least git version 2, I’ll record a bug to report this error in these situations.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users