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 Windows symlinks is-outside-dir bug #47

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

osher
Copy link

@osher osher commented Feb 22, 2021

closes #46

The motive is: istanbuljs/nyc#1381

@osher
Copy link
Author

osher commented Feb 22, 2021

mm. looks like tests are doing something wrong.
I'll find it.

3rd attempt. cloned, checked locally, but I'm on a customer's computer and for some reason github does not let me push to my own cloned repo because of some SSO mess-up, so I push it yet again via the online editor... :P
@osher
Copy link
Author

osher commented Feb 22, 2021

lol. the project's own test suite fails on master when checked out in windows into a path that includes a junction.... 😛

WTF. and this time the right file!

t.test('is not fooled by junctions (win32)', async t => {
const origRealPathSync = fs.realpathSync;
fs.realpathSync = s => s.replace(/symlink/, 'truedir');
Copy link
Author

@osher osher Feb 22, 2021

Choose a reason for hiding this comment

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

LMK if you prefer stubbing fs.realpathSync as part of testHelper

@osher osher changed the title Fix Windows symlinks messing up outside dir Fix Windows symlinks is-outside-dir bug Feb 22, 2021
@osher
Copy link
Author

osher commented Mar 16, 2021

knock, knock? anyone home?

@osher
Copy link
Author

osher commented Mar 30, 2021

@mojavelinux @isaacs @xdissent @shernshiou anybody home?

@mojavelinux
Copy link
Contributor

@osher I do not maintain this project. Please do not ping me.

@osher
Copy link
Author

osher commented Mar 30, 2021

Sorry, I thought that the auto-completion for tags offers the maintainers... 😛

@osher
Copy link
Author

osher commented Mar 30, 2021

How do I find the maintainers.... maybe I'll try frequent committers...
mm.
@coreyfarrell - are you a maintainer of this project?

@osher
Copy link
Author

osher commented May 2, 2021

anybody home 😮

@osher
Copy link
Author

osher commented Jun 6, 2021

ECHO echo (echo) (...)

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 symlinks (aka junctions) mess up the is-outside-dir logic
2 participants