Skip to content

Follow symlinks when creating packages #457

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

winstliu
Copy link
Member

I don't see any reason in the code or the blame why lstatSync (which does not follow symlinks) was chosen over statSync (which does). Now create will follow the symlinks and include the destination paths in the package rather than attempting to only include the symlink, which would crash with EISDIR.

Tested this out locally and it works fine - no more EISDIRs, and the Marketplace validated the extension successfully.

Fixes #265

@winstliu winstliu requested review from a team as code owners May 26, 2024 19:31
@marcopelegrini
Copy link

Please merge this

Copy link
Collaborator

@polatengin polatengin left a comment

Choose a reason for hiding this comment

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

thanks, I like it 👍

@PrestonCS
Copy link

why is this still not implemented?

@elzik
Copy link

elzik commented Feb 19, 2025

I am facing the same issue and would be grateful if this could be merged.

@h45h74x
Copy link

h45h74x commented May 8, 2025

Please merge :)

@petero-dk
Copy link

This fix also works for making the CLI compatible with projects using PNPM, until it is merged and deployed you can manually fix your locally installed version by

running pnpm list -g tfx-cli --depth=0 to get the installed location

Then opening
_build\exec\extension\init.js and _build\exec\extension\_lib\merger.js

and doing a search and replace for fs.lstat with fs.stat

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.

tfx extension create causes "error: Error: EISDIR: illegal operation on a directory, read".
7 participants