-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant up dies when installing FITS #54
Comments
There doesn't seem to be a space in the config/variables file on the first line... #!/bin/sh Try fixing that to: That wasn't changed recently, but it just doesn't look like it's sourcing that file correctly (it's seeing blank lines as commands and doesn't look like the FITS variables are set?) Alternatively, because of the \r instead of \n I wonder if it's being checked out differently on a Windows machine? Git defaults should be to use Linux line endings, I'd think, but I know you can have it use Windows line endings through configuration: https://help.github.com/articles/dealing-with-line-endings/ -- in this case, though, I'd think it would need to have \n or \r\n line endings and perhaps Windows is just using \r? |
Builds fine for me on Linux. I don't have a Windows machine to test this out on. That said, |
I'm fine with removing them (for consistency) but leaning towards the Windows line ending theory at the moment as the cause. |
Testing the shebang hypothesis first... I'm happy to test on Windows, our box at home has lots of horsepower. I'm all thumbs when it comes to dev tools like git on windows though. |
I'm not a Windows user at all, but I do have some instances on VirtualBox that I can help test with later this week if the immediate theories don't pan out. |
Culprit was line endings. I removed the shebang from Maybe we suggest in the README that people running Windows hosts change the line endings in the |
+1 to updating README Also, in terms of consistency, we could also go the route of putting the shebang in every script file. I must admit I found the absence of them unnerving but thought it must be a vagrant thing/convention. |
Why don't we just make all the files have correct line endings? The way I'm reading this is that the build dies on Windows because fits.sh has Windows line endings. I can also create another issue, and take care of the shebangs. |
@ruebot it's |
Perhaps put it in a .gitattributes file in the repo so the user doesn't have to do anything, but it's set as a default for the repository? |
Yeah, doing that now, will then test. |
Where are we seeing the Windows line endings in
|
I don't think they are windows line endings in the repo but only on checkout on a windows machine (git can change line endings on the fly). Setting git to use crlf for the repo should work in all cases, imo. |
|
@ksclarke Ah, ok. That make sense. |
I'm testing a fork of my own, https://github.com/mjordan/islandora_vagrant/tree/ISSUE-54. |
groan. Took an hour and half to build. I guess a 64-bit Win7 machine with an i5 processor and 12 gigs of RAM doesn't have as much horsepower as I thought. Network capacity was surely an issue since there was a lot of pausing at "Downloading...." Anyhoo, adding the .gitattributes file as in my branch has fixed the problem on Windows hosts. Let me test on Linux when I get to work to make sure I didn't introduce any problems there. If that passes, I'll open a PR. In the scramble to fix one problem at a time I kinda lost the thread on #55 but now that I'm set up to test on Windows I can take a look at that too. |
#55 isn't a priority, unless somebody really wants to go through and implement it. |
If it's not a high priority, I'm going to pass on it. |
😄 |
Build successful in Linux. PR is at #56. |
Closed with 388dc02. |
I'm running a clean
vagrant up
at c76b8bf and the install is dying, I think at https://github.com/Islandora-Labs/islandora_vagrant/blob/master/scripts/fits.sh#L20 (or more likely at https://github.com/Islandora-Labs/islandora_vagrant/blob/master/scripts/fits.sh#L21). I'm attaching the output from vagrant up (in a Windows cmd shell).sshing into the vm I can confirm that /vagrant/downloads/fits-0.8.5.zip does exist. Also attaching a screencap of the contents of /usr/local/fits/fits-0.8.5 - everything looks good:
Any ideas?
The text was updated successfully, but these errors were encountered: