Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/cliPublic

Fix install-strategy=linked package name for workspace packages + workaround for another bug#8096

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
xkr47 wants to merge2 commits intonpm:latest
base:latest
Choose a base branch
Loading
fromxkr47:install-strategy-linked-packageName

Conversation

xkr47
Copy link

@xkr47xkr47 commentedFeb 11, 2025
edited
Loading

Attempts tofix#6122.

I don't know whether thepackageName toname propagation should be limited toworkspaceProxy() or whether I was correct in placing it inassignCommonProperties(). It is based on similar code I found elsewhere.

Also had to add a fix/workaround forthis.idealTree.children.get being undefined/null sometimes when runningnpm install. Haven't got the slightest clue why.

Additional tests not yet done, requires some test code refactoring to support workspace packages having names not matching their directory name..

Works for me (TM). You can try these changes out locally by implementing the same changes in the files in<your_node_installation_root>/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/.

References

Fixes#6122

josefaidt, justinfagnani, and voda reacted with heart emoji
xkr47and others added2 commitsFebruary 11, 2025 02:59
I don't know whether this fix should be limited to `workspaceProxy()` or whether I was correct in placing it in `assignCommonProperties()`.
@xkr47xkr47 changed the titleInstall strategy linked package nameFix install-strategy=linked package name for workspace packages + another bugFeb 11, 2025
@xkr47xkr47 changed the titleFix install-strategy=linked package name for workspace packages + another bugFix install-strategy=linked package name for workspace packages + workaround for another bugFeb 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[BUG] Import error withinstall-strategy=linked and namespaced packages in a workspace
1 participant
@xkr47

[8]ページ先頭

©2009-2025 Movatter.jp