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

yarnPath in .yarnrc.yml triggers failures #10632

Open
1 task done
kylemellander opened this issue Sep 18, 2024 · 0 comments
Open
1 task done

yarnPath in .yarnrc.yml triggers failures #10632

kylemellander opened this issue Sep 18, 2024 · 0 comments
Labels
L: javascript T: bug 🐞 Something isn't working

Comments

@kylemellander
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

npm and yarn

Package manager version

yarn 3.8.0

Language version

Ruby 3.3

Manifest location and content before the Dependabot update

.yarnrc.yml

yarnPath: .yarn/releases/yarn-3.8.0.cjs

package.json

{
  "name": "my-project",
  "dependencies": {
    "my-lib": "1.0.0"
  }
}

dependabot.yml content

No response

Updated dependency

No response

What you expected to see, versus what you actually saw

The file that is required by the .yarnrc.yml file is not installed locally, so when triggering an update and attempting to run yarn --version, I get the error:

*** Dependabot::SharedHelpers::HelperSubprocessFailed Exception: node:internal/modules/cjs/loader:1146
  throw err;
  ^

Error: Cannot find module 'dependabot_tmp_dir/.yarn/releases/yarn-3.8.0.cjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Instead, I would expect that the required file for running yarn would be ported over (or that it would be set up so that it uses a global version).

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: javascript T: bug 🐞 Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant