-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproducedworking as intendedThe current behavior is intended.The current behavior is intended.
Description
- I'd be willing to implement a fix
Describe the bug
Well, since yarnrc allows moving the lock file to arbitrary locations, it seemed like a good idea to move it to .yarn folder to keep the root directory one file cleaner.
But not all tools like this new path, and namely @yarnpkg/doctor fails with the following:
➤ YN0001: Error: ENOENT: no such file or directory, open 'C:\Users\style\AppData\Local\Temp\xfs-44fc7c45\dlx-13644\.yarn\lock.yml'
➤ YN0000: Failed with errors in 1s 484ms
To Reproduce
Reproduction
Shell
mv yarn.lock .yarn/lock.yml
echo "lockfileFilename: .yarn/lock.yml" >> .yarnrc.yml
yarn dlx @yarnpkg/doctorSherlock
const { promises: fs } = require('fs');
await fs.writeFile('.yarnrc.yml', 'lockfileFilename: .yarn/lock.yml', {
encoding: 'utf-8',
});
await packageJsonAndInstall({});
const output = yarn('dlx', '@yarnpkg/doctor');
await expect(output).resolves.not.toContain('ENOENT');Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproducedworking as intendedThe current behavior is intended.The current behavior is intended.