codecov / codecov-exe

.exe report uploader for Codecov https://codecov.io
MIT License
25 stars 21 forks source link

Normalize repo files to repo root instead of working directory. #34

Closed leonard-thieu closed 6 years ago

leonard-thieu commented 6 years ago

codecov-exe is normalizing paths to repo files relative to its working directory instead of the repo root. This results in its working directory being prepended to the paths of repo files resulting in incorrect paths. See this build log for an example. All file paths start with test\toofz.Build.Tests\ but should not.

This PR fixes it by getting the full paths to repo files before they are further processed.

Note: I haven't managed to test if the actual reports are corrected on Codecov because I'm getting a Bad Request response on submission.