Moving from developing on MAC to Windows and hitting command:warning: LF will be replaced by CRLF in src/setup.cfg.
See original GitHub issueThrows this error.
Any ideas how to overcome?
2018-08-31 14:41:59,609 StackRunner - ERROR exec_in_sub - ERROR from command:warning: LF will be replaced by CRLF in src/setup.cfg.
The file will have its original line endings in your working directory.
Traceback (most recent call last):
File "c:\python27amd64\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python27amd64\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27amd64\Scripts\bump2version.exe\__main__.py", line 9, in <module>
File "c:\python27amd64\lib\site-packages\bumpversion\__init__.py", line 938, in main
vcs.commit(message=commit_message)
File "c:\python27amd64\lib\site-packages\bumpversion\__init__.py", line 71, in commit
f = NamedTemporaryFile('wb', delete=False)
File "c:\python27amd64\lib\tempfile.py", line 475, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
File "c:\python27amd64\lib\tempfile.py", line 245, in _mkstemp_inner
_set_cloexec(fd)
File "c:\python27amd64\lib\tempfile.py", line 50, in _set_cloexec
flags = _fcntl.fcntl(fd, _fcntl.F_GETFD, 0)
AttributeError: 'module' object has no attribute 'F_GETFD'
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
LF will be replaced by CRLF", is that warning tail backward?
As described in "git replacing LF with CRLF", it should only occur on checkout (not commit), with core. autocrlf=true .
Read more >Resolved: Git warning LF will be replaced by CRLF in file
While using git add command I was receiving below error. warning: LF will be replaced by CRLF in ansible.cfg. The file will have...
Read more >How to Fix LF Will Be Replaced by CRLF Warning in Git
The “$ git config core.autocrlf false” command is used to fix the LF will be replaced by CRLF warning by changing configure variable...
Read more >Solving Git LF will be replaced by CRLF | by tanut aran - Medium
What we want is only CRLF to make the code work on our Window workspace and LF elsewhere. The fix is by use...
Read more >How to Ensure Always LF not CRLF on Windows
I confirm the settings - then I get this when switching (again) to LF from CRLF in PHPStorm: "0 files committed. Warning: LF...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bump2version no longer modifies line-ending style as of #59.
This happens even when commit=false. I think bump2version should not change the kind of line endings. If a file uses LFs, it should still have LFs after being processed, even on Windows.