Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Vagrant: Syntax error in ~/.profile when VirtualBox host is Windows #226

Closed
chooper opened this Issue · 4 comments

3 participants

@chooper

A user from IRC reported these issues. This log was provided:

http://pr0n.sensu.me/docker.log

@chooper chooper was assigned
@chooper

The syntax error turns out to be an issue for Windows users who are using Vagrant. It goes something like:

  1. The Windows git client translates the line endings of the .profile template to CRLF

  2. Vagrant shares the .profile with the VM and runs puppet

  3. Puppet installs the .profile with the CRLF line endings

That might be fixable with a .gitattributes rule. https://help.github.com/articles/dealing-with-line-endings

@chooper

I merged in the change to remove /usr/local/bin/docker. The Windows CRLF issue i still open. Ideas on how best to solve it? Do we set the repo's line-ending behavior off of auto? Do we override it for just this one file?

@fkautz

I recommend

text eol=lf

Force to always use lf, since the target scripts run on is always Linux.

@mzdaniel mzdaniel was assigned
@mzdaniel

@fkautz: There are plenty of changes in /Vagrantfile, and we are now using docker's PPA, deprecating the need to build it on the fly. Could you verify what is the status of this issue?

@mzdaniel mzdaniel closed this
@mzdaniel mzdaniel was unassigned by chooper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.