web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Investigate `4.x` Symlinks Not Working On Windows

Open spacesailor24 opened this issue 3 years ago • 1 comments

There was a report in the ChainSafe discord that the symlinks don't work on Windows and therefore the 4.x branch cannot be properly setup in a Windows env

spacesailor24 avatar May 25 '22 19:05 spacesailor24

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar Jul 25 '22 00:07 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar Sep 26 '22 00:09 github-actions[bot]

Symlinks do not work for windows machines becauase symlinks are not compatible with linux paths.

in linux directories are specified with a forward slash for example tsconfig.types.json symlink: ../../config/tsconfig.types.json

In windows, this would be: ..\..\config\tsconfig.types.json

Replacing the symlinks with a copy of the file would be the easiest option to allow our project to be built in both linux and windows machines.

Edit: Had a chat with Junaid and this PR can wait until after release.

luu-alex avatar May 04 '23 04:05 luu-alex

@luu-alex have you tried building 4.x using: Windows Subsystem for Linux (WSL)

jdevcs avatar Jun 15 '23 11:06 jdevcs