Closed mih closed 1 year ago
Code Climate has analyzed commit cd49d66a and detected 0 issues on this pull request.
View more on Code Climate.
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
c505e52
) 94.69% compared to head (cd49d66
) 94.70%. Report is 10 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the reviews! Very helpful!
[This PR sits on #242, only the last commit is unique and relevant here]
This establishes a fixed format for the configuration. Previously, the path was stored in platform conventions without any indication of the nature of that platform. This turned platform detection into guesswork. Configuration created on windows was not functional on other platforms.
Some of that guesswork is now implemented in a path normalization helper (
_normalize_image_path()
). It is executed on-read, in order to keep older dataset configuration functional for the cases.datalad\\environments\\
(the default)Notably, this guesswork does not cover the case of an image that was configured on windows, and is hosted in a currently uninstalled subdataset. This seems rare enough of a case to not deserve the implied complexity of supporting it in a backward compatible way.
Closes #224
TODO:
The missing lines in the coverage are
I am not planning on adding a test for this case (a path that is verified to be in windows convention by finding a matching filesystem item). If this is unacceptable, I am OK with removing support for this entirely.