Closed bcc32 closed 7 years ago
No, the \r\n
thing has always been managed by this repo. The script winconfigure
itself apparently contains carriage returns, while the upstream version doesn't contain one. There is probably something wrong with your git configuration or there is a non-cygwin git
before cygwin's git
in your $PATH
.
What`s the output of:
which git
git --version
file ~/.opam/packages/sexplib/sexplib.v0.9.2/files/winconfigure
Hmm, I see. The sexplib
package is missing from the packages directory since it didn't get installed.
$ which git
/usr/bin/git
$ git --version
git version 2.14.1
$ git config core.autocrlf
true
$ file ~/.opam/4.05.0+mingw64c/build/sexplib.v0.9.2/winconfigure
(snip)/.opam/4.05.0+mingw64c/build/sexplib.v0.9.2/winconfigure: POSIX shell script, ASCII text executable, with CRLF line terminators
I tried setting core.autocrlf
to input
and nuked the build/sexplib.v0.9.2
directory, but I got the same error.
Ok, it was probably because git config core.autocrlf
was true
. I've now enforced Unix LF via .gitattributes
(a7245d89f4e01715b5b79c6d2c60bbde7de4bec1). This way it should work regardless of your default settings for core.autocrlf
.
You must however convert your existing repo manually to the new line endings:
opam update # fetch the change
cd ~/.opam/repo/mingw
git rm -rf --cached .
git reset --hard HEAD
cd ~/
opam install sexplib
or just start again with a fresh opam root:
mv ~/.opam ~/.opam.old
opam init --comp 4.05.0+mingw64c --switch 4.05.0+mingw64c
Looks like it's working now. Thanks for the help!
I tried
opam install sexplib
using the opam-repository-mingw installer and got the following error message:The error messages suggest to me that the problem might be similar to the one discussed here and at ocaml/merlin#682.