View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004212 | Slicer4 | Core: Building (CMake, Superbuild) | public | 2016-06-17 15:35 | 2017-11-01 08:57 |
Reporter | msmolens | Assigned To | jcfr | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | OS | Windows | OS Version | ||
Product Version | Slicer 4.6.0 | ||||
Target Version | Fixed in Version | ||||
Summary | 0004212: git core.autocrlf=true option causes erroneously modified source files and test failures | ||||
Description | Using Git for Windows (http://git-for-windows.github.io) $ git config --list --show-origin When the core.autocrlf option is true, git coerces One solution could be to add a .gitattributes file that specifies to always Several similar problems occur when running tests:
[1] | ||||
Steps To Reproduce |
Results: $ git status $ ctest -C Release -R MergeModelsTestCompare -V $ file /path/to/SR/Slicer-build/Testing/Temporary/sphereCube.vtp $ file /path/to/Slicer/Modules/CLI/MergeModels/Data/Baseline/sphereCube.vtp | ||||
Tags | No tags attached. | ||||
I was also seeing this with CMake 3.9.4 for the extension description test, until I changed to core.autocrlf=input and reset the index. That's not ideal, but I don't think there's any better option until this CMake issue is resolved and we bump to that version (so not for several years at least): https://gitlab.kitware.com/cmake/cmake/issues/13007 I assume the dashboards must configured to use core.autocrlf=input (or false?) otherwise these text comparison tests would fail... Should we add a .gitattributes to make everyone use |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-17 15:35 | msmolens | New Issue | |
2016-06-17 15:35 | msmolens | Status | new => assigned |
2016-06-17 15:35 | msmolens | Assigned To | => jcfr |
2016-06-17 15:36 | msmolens | Steps to Reproduce Updated | View Revisions |
2016-06-17 15:37 | msmolens | Steps to Reproduce Updated | View Revisions |
2016-06-17 15:55 | msmolens | Steps to Reproduce Updated | View Revisions |
2016-06-17 15:56 | msmolens | Steps to Reproduce Updated | View Revisions |
2017-11-01 08:46 | inorton | Note Added: 0015372 | |
2017-11-01 08:57 | inorton | Note Edited: 0015372 | View Revisions |