Giter Club home page Giter Club logo

Comments (3)

spapas avatar spapas commented on July 17, 2024

Hello @jfmatth, I have already come across the issue you mention (I mostly use Winows) and, (as a Q+D solution) if you convert endlines in the .sh files from windows to unix Vagrant provision will work.

This is caused by the core.autocrlf setting (http://git-scm.com/book/ch7-1.html) which is tweaked when you install git for windows (the installer will ask you what you want to do with your line endings when checking out code and commiting).

The git for windows installer says that the best option is to have autocrfl = true. This means that when you commit your line endings will be converted to windows (that's why you see the \r in the privisioning .sh files) and when you check out your line endings will be converted to unix.

There is a great amount of discussion in SO on which should be the best autocrfl strategy (http://stackoverflow.com/questions/2825428/why-should-i-use-core-autocrlf-true-in-git and http://stackoverflow.com/questions/170961/whats-the-best-crlf-handling-strategy-with-git), but my recommendation, since we are talking about the python world, is to use autocrlf = input. That way, when you commit files containing windows line endings they will be converted to unix, but you won't convert unix line endings when you check out (so, .sh scripts will work).

from wagtaildemo.

jfmatth avatar jfmatth commented on July 17, 2024

@spapas , thanks for the very thorough explanation. I've seen this before on other vagrant installs on Windows (cloud foundry comes to mind). It's a huge pain

I may try and run it on cygwin, and see what happens. Ill let you know.

J

from wagtaildemo.

jfmatth avatar jfmatth commented on July 17, 2024

OK, so i installed in Cygwin with your suggestions, and it worked fine. I'll try in Windows next, but wanted to update you.

from wagtaildemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.