Skip to content

feat: Convert windows path to unix path before comparing against ModuleMatcher file_path value.#40

Merged
bizob2828 merged 1 commit intonodejs:mainfrom
bizob2828:convert-win-paths-to-unix
Mar 6, 2026
Merged

feat: Convert windows path to unix path before comparing against ModuleMatcher file_path value.#40
bizob2828 merged 1 commit intonodejs:mainfrom
bizob2828:convert-win-paths-to-unix

Conversation

@bizob2828
Copy link
Contributor

This PR converts file_path to unix style which implies the ModuleMatcher configuration is always unix paths. I refactored some of the test harnesses to allow to pass in an alternate file path. I also add both rust and wasm tests around wrapping a method when a windows file path is passed in whereas the configured path is unix style.

This resolves apm-js-collab/tracing-hooks#19

@bizob2828 bizob2828 force-pushed the convert-win-paths-to-unix branch from 48ca1a5 to 5c355ba Compare March 4, 2026 17:47
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like code to me.

@bizob2828
Copy link
Contributor Author

@AbhiPrasad @timfish @bengl do you want to take a look at this or are you ok if I merge?

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@bizob2828 bizob2828 merged commit da7b7cb into nodejs:main Mar 6, 2026
1 check passed
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.

Windows: module path separator causes getTransformer to fail (backslash vs forward slash)

4 participants