Open digilist opened 2 years ago
Hi! š
This issue looks stale, and doesn't feature the reproducible
label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).
Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! š
If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded
label. Thanks for helping us triaging our repository! š
This issue reproduces on master:
Error: expect(received).resolves.not.toThrow()
Received promise rejected instead of resolved
Rejected to value: [Error: Command failed: /usr/bin/node /github/workspace/scripts/actions/../run-yarn.js info --manifest
Internal Error: Manifest not found
at Function.find (/github/workspace/packages/yarnpkg-core/sources/Manifest.ts:115:13)
at /github/workspace/packages/plugin-essentials/sources/commands/info.ts:242:22
at InfoCommand.execute (/github/workspace/packages/plugin-essentials/sources/commands/info.ts:340:11)
at InfoCommand.validateAndExecute (/github/workspace/.yarn/__virtual__/clipanion-virtual-9b3ecfaf21/0/cache/clipanion-npm-3.2.0-rc.10-b702c05bd9-d3b6454c9e.zip/node_modules/clipanion/lib/advanced/Command.js:67:26)
at Cli.run (/github/workspace/.yarn/__virtual__/clipanion-virtual-9b3ecfaf21/0/cache/clipanion-npm-3.2.0-rc.10-b702c05bd9-d3b6454c9e.zip/node_modules/clipanion/lib/advanced/Cli.js:222:24)
at Cli.runExit (/github/workspace/.yarn/__virtual__/clipanion-virtual-9b3ecfaf21/0/cache/clipanion-npm-3.2.0-rc.10-b702c05bd9-d3b6454c9e.zip/node_modules/clipanion/lib/advanced/Cli.js:231:28)
at exec (/github/workspace/packages/yarnpkg-cli/sources/main.ts:159:7)
at run (/github/workspace/packages/yarnpkg-cli/sources/main.ts:48:7)
]
at expect (/github/workspace/.yarn/cache/expect-npm-24.8.0-8c7640c562-44ff9ab1e7.zip/node_modules/expect/build/index.js:138:15)
at module.exports (evalmachine.<anonymous>:14:7)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:57:13
at async executeInTempDirectory (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:18:16)
at async executeRepro (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/executeRepro.js:25:12)
at async ExecCommand.execute (/github/workspace/.yarn/cache/@arcanis-sherlock-npm-2.0.3-558f52b79f-286d94b96d.zip/node_modules/@arcanis/sherlock/lib/commands/exec.js:26:38)
at async ExecCommand.validateAndExecute (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Command.js:161:26)
at async Cli.run (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Cli.js:74:24)
at async Cli.runExit (/github/workspace/.yarn/cache/clipanion-npm-2.0.0-rc.16-b9444aaf89-4061026d74.zip/node_modules/clipanion/lib/advanced/Cli.js:83:28)
Self-service
Describe the bug
When using
yarn info --manifest
on a project that uses thelink:
protocol that doesn't define a package.json in the linked folder, it fails with the following error:The reason is that the linked directory doesn't have a package json. But when I understand the Yarn documentation correctly, this shouldn't be necessary:
https://yarnpkg.com/features/protocols#whats-the-difference-between-link-and-portal
To reproduce
I've created a repository with a minimal amount of code to reproduce this issue: https://github.com/digilist/yarn-link-manifest-error
yarn info --manifest
In a nutshell, a package.json like this is necessary and results in the error, when the src directory doesn't contain a package.json:
Or with Sherlock:
Yarn Playground
Environment
Additional context
Creating an empty package.json solves the problem.