Problems building with dependency


(Swift Studies) #1

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

-s


(Max Howell) #2

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.