mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-03-29 11:53:58 -04:00
I learned that Go source is always supposed to have CR line endings, even on Windows.
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.go text eol=cr
|
||||
@@ -30,15 +30,6 @@ for %%f in (..\source\c\astronomy.c ..\source\js\astronomy.js ..\source\python\a
|
||||
)
|
||||
|
||||
echo.Formatting Go code.
|
||||
for %%f in (
|
||||
..\source\golang\astronomy.go
|
||||
..\source\golang\astronomy_test.go
|
||||
) do (
|
||||
node eol_hack.js %%f || (
|
||||
echo.ERROR cleaning newlines in file: %%f
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
cd ..\source\golang
|
||||
go version || (
|
||||
echo.FATAL: Cannot find Go compiler.
|
||||
|
||||
Reference in New Issue
Block a user