Skip to content

fix: remove duplicate entries in PATH#54

Open
FliegendeWurst wants to merge 1 commit intopnpm:mainfrom
FliegendeWurst:patch-2
Open

fix: remove duplicate entries in PATH#54
FliegendeWurst wants to merge 1 commit intopnpm:mainfrom
FliegendeWurst:patch-2

Conversation

@FliegendeWurst
Copy link
Copy Markdown

Otherwise the environment variable may be longer than 128KiB, which Linux does not allow (spawn fails with E2BIG).
There are various bug reports related to E2BIG failures:
pnpm/pnpm#6106
pnpm/pnpm#8552

I'm not sure how to handle project paths that contain a colon :.
And I'm not sure whether this would be the "best" fix, because it would certainly be better to address the issue at the root cause (somewhere else in pnpm the PATH variable is generated with duplicate entries).

Otherwise the environment variable may be longer than 128KiB, which Linux does not allow (spawn fails with E2BIG).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant