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(github): correctly convert file: URL to path #131

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Conversation

aduh95
Copy link
Contributor

@aduh95 aduh95 commented Oct 22, 2024

Needed for nodejs/node#48409

When the path contains URL-significant chars (e.g. %, ?, #), it breaks the reporter. Also, using require.resolve to resolve relative paths will be problematic as it would resolve it relatively from the current reporter module instead of the CWD. Using path.resolve should be a better fit.

@Eomm
Copy link

Eomm commented Dec 10, 2024

friendly ping @MoLow 🙏🏼

packages/github/index.js Outdated Show resolved Hide resolved
packages/github/index.js Outdated Show resolved Hide resolved
@MoLow MoLow merged commit 31843fc into MoLow:main Dec 10, 2024
0 of 4 checks passed
@aduh95 aduh95 deleted the patch-1 branch December 10, 2024 11:07
@github-actions github-actions bot mentioned this pull request Sep 25, 2024
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.

3 participants