-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 path normalization in resolve_from_cwd() #2875
Conversation
a93a8e7
to
23424c7
Compare
Cool - but is there some way we can get a unit test for this? |
edde8dc
to
abc5e9b
Compare
abc5e9b
to
d0ff8e3
Compare
@ry Done. I wanted to add something to |
Looks good - just a few comments --^ |
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.
LGTM
This bug remains unfixed :( |
@ChiKler 😕 I just ran it and it works as expected: ❯ deno run --allow-read="." test.js
error: Uncaught PermissionDenied: read access to "/Users/kitsonk/github", run again with the --allow-read flag
at processResponse (core.js:224:13)
at Object.jsonOpSync (core.js:248:12)
at Object.readDirSync (deno:cli/rt/30_fs.js:109:12)
at file:///Users/kitsonk/github/test/test.js:1:6 Why do you think it isn't fixed? |
Here's an example (am I doing something wrong?): |
@ChiKler I believe that's because you use |
Fixes #2718.
test.js
:deno --no-prompt --allow-read="." test.js
Before:
OK
After:
error: Uncaught PermissionDenied: permission denied ...