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 does not create build-info file if cache is enabled #6859

Closed
2 tasks done
RaoulSchaffranek opened this issue Jan 19, 2024 · 2 comments · Fixed by #7347
Closed
2 tasks done

forge build does not create build-info file if cache is enabled #6859

RaoulSchaffranek opened this issue Jan 19, 2024 · 2 comments · Fixed by #7347
Labels
T-bug Type: bug

Comments

@RaoulSchaffranek
Copy link

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (2335dea 2024-01-19T00:18:45.919964404Z)

What command(s) is the bug in?

forge build

Operating System

Linux

Describe the bug

forge build does not create the build-info files when caching is enabled.

Steps to reproduce:

forge init
echo "cache = true" >> foundry.toml
forge build --build-info

After that, I'd expect a new folder out/build-info that contains a JSON file with the solc standard JSON contents. However, no such folder and file is created.

@RaoulSchaffranek RaoulSchaffranek added the T-bug Type: bug label Jan 19, 2024
@klkvr
Copy link
Member

klkvr commented Mar 7, 2024

I can't really reproduce this right now, could you check if the issue still persists on latest nightly?

@RaoulSchaffranek
Copy link
Author

Hey! Thanks for looking into it. Actually, I messed up the reproduction steps. To reproduce you have to disable the cache - not enable it. Thus the correct sequence to reproduce is the following:

forge init
echo "cache = false" >> foundry.toml
forge build --build-info

I can confirm that the bug is still present as of version forge 0.2.0 (5c3b075 2024-03-08T00:17:08.055896400Z)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants