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

forge build SomeContract.sol (target a single file or glob of files) #6278

Closed
holic opened this issue Nov 10, 2023 · 2 comments
Closed

forge build SomeContract.sol (target a single file or glob of files) #6278

holic opened this issue Nov 10, 2023 · 2 comments
Labels
A-compiler Area: compiler C-forge Command: forge Cmd-forge-build Command: forge build T-feature Type: feature

Comments

@holic
Copy link

holic commented Nov 10, 2023

Component

Forge

Describe the feature you would like

I think there's an issue with forge cache not taking into account inheritance when generating new ABIs: #6241 (comment)

As a workaround, I was hoping to just rebuild (with --force) a single file, but looks like forge doesn't have a way to do this? I'm not sure if the above is easier to fix than to add this feature, but this feature seems useful anyhow, so thought I'd ask.

Additional context

No response

@Rubilmax
Copy link
Contributor

Would love this

@zerosnacks zerosnacks added Cmd-forge-build Command: forge build C-forge Command: forge A-compiler Area: compiler labels Jul 5, 2024
@zerosnacks
Copy link
Member

zerosnacks commented Jul 5, 2024

Resolved by #8158 + #8149

Now allows for syntax:

forge build <DIR1> <DIR2> e.g. forge build scripts test or forge build src/*

and

forge build src/Counter.sol to build an individual file

@jenpaff jenpaff moved this from Todo to Completed in Foundry Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiler Area: compiler C-forge Command: forge Cmd-forge-build Command: forge build T-feature Type: feature
Projects
Archived in project
Development

No branches or pull requests

3 participants