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

[Bug?]: yarn dlx command fails with injectEnvironmentFiles option in yarnrc #6681

Open
1 task
vijaybritto opened this issue Feb 8, 2025 · 1 comment
Open
1 task
Labels
bug Something isn't working

Comments

@vijaybritto
Copy link

vijaybritto commented Feb 8, 2025

Self-service

  • I'd be willing to implement a fix

Describe the bug

yarn dlx command fails to run in repo where injectEnvironmentFiles is used. For example this is what I see in my repo:

yarn dlx -q envinfo --preset jest~    
Internal Error: ENOENT: no such file or directory, open '/private/var/folders/12/ddq_2m2d1zz43c5nzmmn3q5m0000gp/T/xfs-4608f78b/dlx-43819/.env.yarn'
Error: ENOENT: no such file or directory, open '/private/var/folders/12/ddq_2m2d1zz43c5nzmmn3q5m0000gp/T/xfs-4608f78b/dlx-43819/.env.yarn'

To reproduce

  1. Add injectEnvironmentFiles property in your .yarnrc.yml file
  2. Run yarn dlx depcheck .. depcheck is an example here.

Environment

System:
    OS: macOS 13.6.9
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 22.13.1 - /private/var/folders/12/ddq_2m2d1zz43c5nzmmn3q5m0000gp/T/xfs-00b252ae/node
    Yarn: 4.6.0 - /private/var/folders/12/ddq_2m2d1zz43c5nzmmn3q5m0000gp/T/xfs-00b252ae/yarn
    npm: 10.9.2 - ~/Library/Caches/fnm_multishells/38714_1739010506997/bin/npm
    bun: 1.2.2 - ~/.bun/bin/bun

Additional context

No response

@vijaybritto vijaybritto added the bug Something isn't working label Feb 8, 2025
@vijaybritto vijaybritto changed the title [Bug?]: Multiple issues in environment variables injection [Bug?]: yarn dlx command fails with injectEnvironmentFiles option in yarnrc Feb 8, 2025
@vijaybritto
Copy link
Author

I'm also facing the same issue as #6111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant