Skip to content

Multiple tools conflict when installed together: .pnpm-workspace-state-v1.json collision #2

@elocke

Description

@elocke

When enabling multiple steipete-tools plugins together (e.g. oracle and summarize) in a home-manager environment, the build fails with a pkgs.buildEnv conflict:

pkgs.buildEnv error: two given paths contain a conflicting subpath:                                                                                              
    `/nix/store/...-summarize-0.10.0/libexec/node_modules/.pnpm-workspace-state-v1.json' and                                                                       
    `/nix/store/...-oracle-0.8.5/libexec/node_modules/.pnpm-workspace-state-v1.json' 

Each tool's derivation outputs $out/libexec/node_modules/.pnpm-workspace-state-v1.json, which is a pnpm build artifact not needed at runtime. When nix-openclaw adds multiple tools to the home-manager path, buildEnv can't merge them.

Possible fixes:

  • Remove .pnpm-workspace-state-v1.json from $out in the build (e.g. rm -f $out/libexec/node_modules/.pnpm-workspace state-v1.json in postInstall)

  • Or namespace each tool's output under $out/libexec/<tool-name>/ to avoid collisions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions