robrix / Prelude

Swift µframework of simple functional programming tools
MIT License
409 stars 26 forks source link

Carthage support? #16

Closed justinmakaila closed 9 years ago

justinmakaila commented 9 years ago

I already use carthage to manage the dependencies in my framework, but every time I try to run carthage update with the line

github "robrix/Prelude" == 1.1

in my Cartfile, I get an error:

Error Domain=org.carthage.ReactiveTask Code=0 "fatal: Not a git repository (or any of the parent directories): .git
" UserInfo=0x7f9a00f0ea40 {NSLocalizedDescription=fatal: Not a git repository (or any of the parent directories): .git
, ReactiveTaskErrorExitCode=128, ReactiveTaskErrorStandardError=fatal: Not a git repository (or any of the parent directories): .git
}

But again, only when I try to add Prelude. Have you experienced this?

robrix commented 9 years ago

I can’t reproduce this error, unfortunately. What are your versions of:

?

Are you using submodules?

/cc @jspahrsummers

justinmakaila commented 9 years ago

Xcode version 6.1.1 (6A2008a) carthage version 0.3.0 git version 1.9.3

robrix commented 9 years ago

@justinmakaila Same as me, then. Can you try this?

  1. Make a new, empty folder.
  2. In that folder, make a Cartfile with:

    github "robrix/Prelude" == 1.1
  3. carthage update
justinmakaila commented 9 years ago

Cartfile:

github "robrix/Prelude" == 1.1

Output:

~/W/S/carthage-test $ carthage update
*** Fetching Prelude
Error Domain=org.carthage.ReactiveTask Code=0 "fatal: Not a git repository (or any of the parent directories): .git
" UserInfo=0x7f9f5d203630 {NSLocalizedDescription=fatal: Not a git repository (or any of the parent directories): .git
, ReactiveTaskErrorExitCode=128, ReactiveTaskErrorStandardError=fatal: Not a git repository (or any of the parent directories): .git
}
robrix commented 9 years ago

@jspahrsummers I’m out of ideas, but pretty sure this is not an issue with Prelude. Any thoughts?

jspahrsummers commented 9 years ago

@justinmakaila Can you try:

rm -rf ~/.carthage/dependencies
rm -rf ~/Library/Caches/org.carthage.CarthageKit

And then attempt the update again? It sounds like one of the local Git clones got messed up somehow.

justinmakaila commented 9 years ago

@robrix @jspahrsummers That worked. Thanks!

jspahrsummers commented 9 years ago

:sparkles:

robrix commented 9 years ago

Thanks @jspahrsummers :heart:

jlott1 commented 9 years ago

Thanks for that jspahrsummers. really helped me out :+1: