-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 is ignored in forge script #7799
Comments
Running
|
Thanks for your reply! Unfortunately that's not my experience, currently Here's the output when I run these commands on the host machine (not in Docker): > forge --version
forge 0.2.0 (26e6e57 2024-04-28T00:19:12.405804000Z)
> forge build
[⠊] Compiling...
[⠒] Compiling 297 files with 0.8.24
[⠆] Solc 0.8.24 finished in 17.78s
Compiler run successful!
> forge script scripts/foundry/TomlTest.s.sol:TomlTest
[⠊] Compiling...
[⠘] Compiling 282 files with 0.8.24
[⠊] Solc 0.8.24 finished in 16.44s
Compiler run successful!
Traces:
... |
Possibly the same issue as #7379. |
Turns out it was a configuration issue, didn't realize I had |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
19d69f2
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
It seems that
--skip
works withforge build
to skip compilation, but it does not work withforge script
.I tried multiple combinations (e.g.
--skip "*"
,--skip "*.sol"
,--skip "src" --skip "scripts"
).I have a Docker container in which I run multiple forge scripts. What I want to achieve is: Run
forge build
when building the container, then run the script (without building again) when I run the container.The text was updated successfully, but these errors were encountered: