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

Brownie compiles contracts even when not need - Option to disable #1194

Open
gnarvaja opened this issue Aug 11, 2021 · 2 comments
Open

Brownie compiles contracts even when not need - Option to disable #1194

gnarvaja opened this issue Aug 11, 2021 · 2 comments

Comments

@gnarvaja
Copy link

Environment information

  • brownie Version: 1.14.6
  • ganache-cli Version: 6.12.2
  • solc Version: 0.8.6
  • Python Version: 3.9.0
  • OS: linux (inside docker image)

What was wrong?

When I run any pytest command (even pytest --help), it always compiles the contracts, even when not needed and even when the files didn't changed

pytest --help
Compiling contracts...
  Solc version: 0.8.6
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
Generating build data...
 - BaseAssetManager
 - DataTypes
...

How can it be fixed?

At least it should detect nothing changed and don't run the compilation. But also should be possible to tell with some environment variable or config setting to completely avoid compilation tasks. This can be useful to speed up when testing pure python code.

@cameel
Copy link

cameel commented Aug 14, 2021

Might be a duplicate of #956.

@AoDev
Copy link

AoDev commented Sep 7, 2021

Duplicate of this one (mine) #1096

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

3 participants