-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
(pnpm) Using tsx
in postinstall
script generates unexpected file at ./tsx-0/
#596
Comments
I can't reproduce this on my end. Can you use GitHub Actions or something to demonstrate it? |
Hello @privatenumber, Here is a oneline reproduction using docker run: |
Sorry but a screenshot doesn't help. And I don't use Docker. I need a reproduction env for me to debug and test fixes in. GitHub Actions or any kind of CI would work best. |
Hello @privatenumber, idk why but for github's default runners I could not reproduce it, but does indeed exists because I could reproduce the issue on my work machine which uses plain Ubuntu, I have also do more tests and it is indeed reproducible on various docker images: I have also able to reproduce it on my company Gitlab CI with For your convenience, I have setup a repo in which I was able to use Github Actions to reproduce it (using docker container action): https://github.com/NamesMT/repro-tsx-action Thanks a lot. |
I appreciate it, thanks @NamesMT I haven't confirmed this, but I believe this is actually pnpm/pnpm#7330 tsx creates a cache directory in Will take a closer look later on. |
That seems to be it, maybe we can apply a workaround like |
If it's rooted in pnpm, then it's not a tsx bug. And I would rather not patch bugs from other tools via tsx. This is for the same reasons I would relay any Node bugs we get to https://github.com/nodejs/node. Encouraging fixes to be made in the right places maximizes benefit to the community. Can you verify this is what's causing it by running pnpm with |
Yes I can verify that running pnpm with |
Closing as it's a bug in pnpm rather than tsx |
Acknowledgements
Minimal reproduction URL
https://stackblitz.com/github/namesmt/repro-tsx
Problem & expected behavior (under 200 words)
Alternative github repo because stackblitz could not load for me, idk if it's just me: https://github.com/NamesMT/repro-tsx
Simply run
![image](https://private-user-images.githubusercontent.com/23612546/341985992-f19ca78f-da0b-4378-8d1f-4ff72125268b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzIxNzksIm5iZiI6MTcyMDczMTg3OSwicGF0aCI6Ii8yMzYxMjU0Ni8zNDE5ODU5OTItZjE5Y2E3OGYtZGEwYi00Mzc4LThkMWYtNGZmNzIxMjUyNjhiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDIxMDQzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI2NmMyZmE4OTFhMGNjMTM4YzRiYmE2NGZmYTQ0NDUxODI3ODhlMmM0ZWE1YjcxYmI2NzY2ZmU1OTJmYjQwNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wguQ2pihMswWSq_0wJRmlYMJ_pKEgCojWtxKF_DkxNw)
pnpm install
, an unexpected file is created along with the foldertsx-0
It does not happen with normal
npm
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: