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

warning Pattern ["circomlib@https://github.com/weijiekoh/circomlib.git#24ed08eee0bb613b8c0135d66c1013bd9f78d50a"] is trying to unpack in the same destination "/vercel/.cache/yarn/v6/npm-circomlib-0.5.2-24ed08eee0bb613b8c0135d66c1013bd9f78d50a/node_modules/circomlib" as pattern ["circomlib@0.5.2"]. #78

Closed
baumstern opened this issue Apr 2, 2022 · 0 comments

Comments

@baumstern
Copy link
Contributor

baumstern commented Apr 2, 2022

Symptom

warning Pattern ["circomlib@https://github.com/weijiekoh/circomlib.git#24ed08eee0bb613b8c0135d66c1013bd9f78d50a"] is trying to unpack in the same destination "/vercel/.cache/yarn/v6/npm-circomlib-0.5.2-24ed08eee0bb613b8c0135d66c1013bd9f78d50a/node_modules/circomlib" as pattern ["circomlib@0.5.2"]. This could result in non-deterministic behavior, skipping.

Reproduction Procedure

git clone https://github.com/quadratic-funding/qfi/
cd qfi
yarn install

Solution

Use the resolution field in package.josn (See).

e.g.

"resolutions": {
    "qaci-cli/circomlib": "https://github.com/weijiekoh/circomlib.git#24ed08eee0bb613b8c0135d66c1013bd9f78d50a",
    "qaci-crypto/circomlib": "https://github.com/weijiekoh/circomlib.git#24ed08eee0bb613b8c0135d66c1013bd9f78d50a"
  },

yarn why circomlib

=> Found "circomlib@0.5.1"
info Has been hoisted to "circomlib"
info Reasons this module exists
   - "workspace-aggregator-7df94fc6-2209-46e1-85f5-8d18bbb40aa4" depends on it
   - Hoisted from "_project_#@quadratic-funding#contracts#circomlib"
   - Hoisted from "_project_#@quadratic-funding#contracts#qaci-contracts#circomlib"
info Disk size without dependencies: "1.41MB"
info Disk size with unique dependencies: "83MB"
info Disk size with transitive dependencies: "223.18MB"
info Number of shared dependencies: 105
=> Found "qaci-cli#circomlib@0.5.2"
info This module exists because "_project_#@quadratic-funding#contracts#qaci-cli" depends on it.
info Disk size without dependencies: "114.49MB"
info Disk size with unique dependencies: "196.08MB"
info Disk size with transitive dependencies: "336.27MB"
info Number of shared dependencies: 105
=> Found "zkey-manager#circomlib@2.0.3"
info This module exists because "_project_#@quadratic-funding#contracts#zkey-manager" depends on it.
info Disk size without dependencies: "3.43MB"
info Disk size with unique dependencies: "3.43MB"
info Disk size with transitive dependencies: "3.43MB"
info Number of shared dependencies: 0
=> Found "qaci-crypto#circomlib@0.5.2"
info This module exists because "_project_#@quadratic-funding#contracts#qaci-crypto" depends on it.
info Disk size without dependencies: "2.13MB"
info Disk size with unique dependencies: "83.72MB"
info Disk size with transitive dependencies: "223.91MB"
info Number of shared dependencies: 105
=> Found "qaci-circuits#circomlib@1.0.0"
info This module exists because "_project_#@quadratic-funding#contracts#qaci-circuits" depends on it.
info Disk size without dependencies: "2.81MB"
info Disk size with unique dependencies: "2.81MB"
info Disk size with transitive dependencies: "2.81MB"
info Number of shared dependencies: 0
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

No branches or pull requests

1 participant