[swift-users] Problems building with dependency

Max Howell max.howell at apple.com
Thu Mar 17 11:50:53 CDT 2016


> 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
> Cloning https://github.com/SwiftStudies/Duration.git
> /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>]
>            <command> [<args>]
> 
> 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...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160317/0d49ad82/attachment.html>


More information about the swift-users mailing list