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

skip and avoid-contracts seem to not be working. #372

Closed
1 of 2 tasks
PatrickAlphaC opened this issue May 11, 2024 · 2 comments
Closed
1 of 2 tasks

skip and avoid-contracts seem to not be working. #372

PatrickAlphaC opened this issue May 11, 2024 · 2 comments
Labels

Comments

@PatrickAlphaC
Copy link
Collaborator

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.0.2 (01f61ff 2024-05-11T00:24:53.177450000Z)

What command(s) is the bug in?

forge build

Operating System

macOS (Intel)

Describe the bug

forge init

Update Counter.t.sol to not be compileable. Maybe with something like this:

    function setUp() public {
        hello
    }

then, run this:

RUST_LOG=debug forge build --skip Counter.t.sol --zksync

It will incorrectly try to compile the contract we are skipping. Without the --zksync flag, it works fine.

@dutterbutter
Copy link
Collaborator

@PatrickAlphaC I will look to reproduce, it seems to be working for me at first glance.

@dutterbutter
Copy link
Collaborator

@PatrickAlphaC you will need to use the following command:

RUST_LOG=debug forge build --skip Counter.t.sol --avoid-contracts Counter.t.sol --zksync

We intend to consolidate skip and avoid-contracts in a future release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants