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

Failing to run/build fresh init after importing Uniswap v3 #925

Closed
ga-reth opened this issue Mar 17, 2022 · 1 comment
Closed

Failing to run/build fresh init after importing Uniswap v3 #925

ga-reth opened this issue Mar 17, 2022 · 1 comment

Comments

@ga-reth
Copy link

ga-reth commented Mar 17, 2022

Exception

fatal: cannot change to 'lib/v3-core/src': No such file or directory
child_process.js:661
    throw err;
    ^

Error: Command failed: git -C lib/v3-core/src rev-parse HEAD
fatal: cannot change to 'lib/v3-core/src': No such file or directory

    at checkExecSyncError (child_process.js:640:11)
    at Object.execFileSync (child_process.js:658:15)
    at run (/nix/store/3ndc11drccg1l1hwmzm3crhi9wsxzbvr-dapp-0.35.0/libexec/dapp/dapp-remappings:77:35)
    at /nix/store/3ndc11drccg1l1hwmzm3crhi9wsxzbvr-dapp-0.35.0/libexec/dapp/dapp-remappings:40:16
    at Array.forEach (<anonymous>)
    at findRemappings (/nix/store/3ndc11drccg1l1hwmzm3crhi9wsxzbvr-dapp-0.35.0/libexec/dapp/dapp-remappings:17:43)
    at Object.<anonymous> (/nix/store/3ndc11drccg1l1hwmzm3crhi9wsxzbvr-dapp-0.35.0/libexec/dapp/dapp-remappings:5:1)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32) {
  status: 128,
  signal: null,
  output: [
    null,
    '',
    "fatal: cannot change to 'lib/v3-core/src': No such file or directory\n"
  ],
  pid: 80819,
  stdout: '',
  stderr: "fatal: cannot change to 'lib/v3-core/src': No such file or directory\n"
}
 dapp-build: building with linked libraries
ParserError: Source "ds-test/test.sol" not found: File not found.
 --> src/DappError.t.sol:4:1:
  |
4 | import "ds-test/test.sol";

Repro

dapp init
dapp install Uniswap/v3-core
dapp test

FWIW above result is the same if using dapp install https://github.com/Uniswap/v3-core

remappings.txt
This failure occurs with and without remapping:

@uniswap/v3-core=lib/v3-core/
ds-test/=lib/ds-test/src/
ds-test=lib/ds-test/src/index.sol

env
export DAPP_REMAPPINGS=$(cat remappings.txt)

Am i missing something simple here? Seems that it's searching for a /src folder.. can I disable this?

@ga-reth ga-reth changed the title Failing to run/build after importing Uniswap v3 Failing to run/build fresh init after importing Uniswap v3 Mar 18, 2022
@ga-reth ga-reth closed this as completed Mar 21, 2022
@SamuelCheng123
Copy link

I also have this problem
How did you solve it

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

2 participants