Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expand paths before checking for existence #34

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

josegonzalez
Copy link
Contributor

@josegonzalez josegonzalez commented May 31, 2023

Without this, all characters in the coverage_file value are treated as literal characters in the path. The combinations of ~, ./, or ../ won't be treated as expected, causing weird build failures for users.

Note that if the file doesn't exist, then the path will resolve to empty string, which is fine.

Aside, I used a separate variable so that the logging would reflect the originally passed in value and not the resolved path.

Closes #33

Without this, all characters in the `coverage_file` value are treated as literal characters in the path. The combinations of `~`, `./`, or `../` won't be treated as expected, causing weird build failures for users.

Note that if the file doesn't exist, then the path will resolve to empty string, which is fine.

Closes coverallsapp#33
@mrexox mrexox merged commit d4b1af4 into coverallsapp:master Jun 7, 2023
@mrexox
Copy link
Contributor

mrexox commented Jun 7, 2023

Thank you for the fix. You can check it in @2.2.0

@josegonzalez josegonzalez deleted the patch-2 branch June 8, 2023 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Orb does not accept ~ for representing home
2 participants