jfrog / jfrog/jfrog-cli

Jfrog cli hangs indefinitely on pnpm install when there are configDependencies

Open
#3,476 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
595
Forks
307
Avg merge
4d 17h
Merged PRs (30d)
17

Description

Describe the bug

When a pnpm-workspace.yaml contains configDependencies, running jf pnpm i with no node_modules will hang indefinitely.

Current behavior
$ JFROG_CLI_LOG_LEVEL="DEBUG" jf pnpm i --frozen-lockfile
16:18:47 [Debug] JFrog CLI version: 2.103.0
16:18:47 [Debug] OS/Arch: darwin/arm64
16:18:47 [Debug] Trace ID for JFrog Platform logs: 7b1af9d9dcb35475

The command hangs at this step. Running pnpm i on its own installs normally.

Reproduction steps

Create a repo using pnpm, add a config dependency. For example:

pnpm add --config @pnpm/plugin-better-defaults
# refresh lockfile
pnpm i
# remove installed deps
rm -r node_modules

Then install dependencies:

jf pnpm i

Expected behavior

jf pnpm i should complete normally.

JFrog CLI version

2.103.0

Operating system type and version

Darwin Kernel Version 23.6.0

JFrog Artifactory version

No response

JFrog Xray version

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hang with a pnpm-workspace.yaml containing configDependencies by removing node_modules and running jf pnpm i --frozen-lockfile. Start by tracing the JFrog CLI pnpm command entry point and how it invokes pnpm. Done means the command completes normally in this reproduction without hanging, with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.