This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: run tests on windows #127
fix: run tests on windows #127
Changes from 1 commit
81c9e95
82af2c8
e8606a8
f908462
96928de
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the
normalized
variable rather redundant, no? So we could just skip this entirereduce
and just returnresolvedEntries
straight up?Makes me wonder why its originally been added there at all 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I read it, the reason you resolve the path is to make all the requires absolute and then use the
result
hash to dedupe them?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, good catch.
I'm thinking that we maybe instead should ensure that whatever globby is given is always using the right slashes? Adding a
entry.replace('\', '/')
todependency-check/index.js
Lines 26 to 35 in ad715e5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work with replacing the slashes before passing the entries to globby, I've updated the PR.