Open dmolesUC opened 9 years ago
I can verity this issue.
@philred could you verify the proposed fix in #15?
That didn't work for me. i'm still getting lines such as:
cannot stat ���/vagrant\r/downloads\r/solr-.tgz���
@philred, do you have a patch that works for you? If so, please provide a pull-request.
No, i manually used atom to change the line endings to unix.
No idea why, but using https://github.com/dmolesUC3/fcrepo4-vagrant works but https://github.com/fcrepo4-labs/fcrepo4-vagrant with the https://github.com/fcrepo4-labs/fcrepo4-vagrant/pull/15 does not work for me.
I just tested forking https://github.com/fcrepo4-labs/fcrepo4-vagrant and adding the gitattributes file on a linux box, then push/pull back to windows. This almost worked except localhost:8080/fcrepo didn't show up. I repeated cloning to windows and manually changing the line endings, and that worked.
Something sounds fishy. I wish we had another Windows user lurking on this thread.
Further investigation shows that autocrlf = true
is automagically converting line endings to CRLF from the LF that vagrant up
wants. Edit .gitconfig
, set autocrlf = false
, and then delete and reclone to make it work. No code changes required, but perhaps a troubleshooting note for windows users would be helpful.
Steps to reproduce:
vagrant up
Expected:
Actual:
\r
in themAnalysis:
install_scripts
get CRLF line endings when checked out on Windows, and when copied to the virtual machine they still have these line endings.Proposed fix:
.gitattributes
to force LF endings for these scripts (pull request forthcoming)