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

Can't find yarn.lock #7964

Open
1 task done
BBboy01 opened this issue Sep 5, 2023 · 3 comments
Open
1 task done

Can't find yarn.lock #7964

BBboy01 opened this issue Sep 5, 2023 · 3 comments
Labels
L: javascript:pnpm npm packages via pnpm T: bug 🐞 Something isn't working

Comments

@BBboy01
Copy link

BBboy01 commented Sep 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

npm

Package manager version

pnpm 8.7.1

Language version

node.js 18.17.0

Manifest location and content before the Dependabot update

No response

dependabot.yml content

version: 2
registries:
  npm-private:
    type: npm-registry
    url: http://npm-private.com/
    replaces-base: true
updates:
  - package-ecosystem: npm
    registries:
      - npm-private
    directory: '/'
    schedule:
      interval: monthly
    open-pull-requests-limit: 20
    versioning-strategy: lockfile-only

Updated dependency

No response

What you expected to see, versus what you actually saw

Here is a section of update log, and only pnpm-lock.yaml file in my repo, but dependabot check the yarn.lock .

I think the reason is there is no pnpm helper.

if dependency_files_builder.package_locks.any? ||
dependency_files_builder.shrinkwraps.any?
SharedHelpers.run_helper_subprocess(
command: NativeHelpers.helper_path,
function: "npm:findConflictingDependencies",
args: [Dir.pwd, dependency.name, target_version.to_s]
)
else
SharedHelpers.run_helper_subprocess(
command: NativeHelpers.helper_path,
function: "yarn:findConflictingDependencies",
args: [Dir.pwd, dependency.name, target_version.to_s]
)
end

[2023-09-05 02:16:41 +0000] INFO  -- [dep-update: mm/ff=>npm] Processing dependency codemirror
[2023-09-05 02:16:45 +0000] WARN  -- [dep-update: mm/ff=>npm]   update for codemirror: 5.65.15 is impossible
[2023-09-05 02:16:45 +0000] ERROR -- [dep-update: mm/ff=>npm] [core] Helpers output: {"command":"node /opt/npm_and_yarn/run.js","function":"yarn:findConflictingDependencies","args":["/home/dependabot/app/tmp/20230905-1-y1w0t4/dependabot_20230905-1-gz8eb1","codemirror","6.0.0"],"time_taken":0.129007959,"stderr_output":"","process_exit_value":"pid 451 exit 1","process_termsig":null,"response":{"error":"ENOENT: no such file or directory, open '/home/dependabot/app/tmp/20230905-1-y1w0t4/dependabot_20230905-1-gz8eb1/yarn.lock'"}}

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

@BBboy01 BBboy01 added the T: bug 🐞 Something isn't working label Sep 5, 2023
@deivid-rodriguez deivid-rodriguez added the L: javascript:pnpm npm packages via pnpm label Sep 19, 2023
@deivid-rodriguez
Copy link
Contributor

Thanks! Yes, this looks like it was missed in the PNPM implementation. Do you have a public repository that reproduces this?

@aperigault
Copy link

Hi,
same problem here. How can I help to solved it ?

[2024-06-25 07:59:51 +0000] WARN  -- [dep-update: test/myrepo=>npm=>/front/core]   update for autoprefixer: 10.4.5 is impossible
[2024-06-25 07:59:51 +0000] WARN  -- [dep-update: test/myrepo=>npm=>/front/core] [core] Helpers output:
{
  "command": "node /opt/npm_and_yarn/run.js",
  "function": "yarn:findConflictingDependencies",
  "args": [
    "/home/dependabot/app/tmp/20240625-34-qz3ttl/dependabot_20240625-34-1aj9yq",
    "autoprefixer",
    ""
  ],
  "time_taken": 0.19430674,
  "stderr_output": "",
  "process_exit_value": "pid 640 exit 1",
  "process_termsig": null,
  "response": {
    "error": "ENOENT: no such file or directory, open '/home/dependabot/app/tmp/20240625-34-qz3ttl/dependabot_20240625-34-1aj9yq/yarn.lock'"
  }
}

@receperdogan
Copy link

Same here, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: javascript:pnpm npm packages via pnpm T: bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants