halmos icon indicating copy to clipboard operation
halmos copied to clipboard

`forge-build-out` doesn't work as expectation.

Open whbjzzwjxq opened this issue 2 years ago • 3 comments

Describe the bug I assume that forge-build-out option is used to indicate the output folder of foundry, however, it works as seeking the build output in that folder.

To Reproduce Go to an empty folder and execute forge init. After the initialization, execute halmos -vvvv --function test --forge-build-out .cache Actually, out folder will be used to compile code and Halmos can't find the output.

Environment:

  • OS: macOS
  • Python version: 3.11.4 (With mini-conda)
  • Halmos and other dependency versions: Halmos 0.1.4
  • Foundry version: forge 0.2.0 (6672134 2023-08-06T08:43:05.364384000Z)

Additional context Could Halmos use --cache-path when calling forge test?

whbjzzwjxq avatar Aug 26 '23 20:08 whbjzzwjxq

The practical problem is that every time I run halmos and forge, they will clean up the cache folder individually.

whbjzzwjxq avatar Aug 28 '23 02:08 whbjzzwjxq

@whbjzzwjxq I am intrested in it Please assign me this!!

TechWizard9999 avatar Oct 04 '23 17:10 TechWizard9999

@whbjzzwjxq I am intrested in it Please assign me this!!

Hello, I am not the developer/maintainer of Halmos, but you could get in touch with any of them.

whbjzzwjxq avatar Oct 10 '23 03:10 whbjzzwjxq

I don't understand this issue, foundry says --cache-path is the compiler cache, which halmos does not use.

halmos relies on the project root (where foundry.toml lives) and the build output directory (which forge normally puts under /out)

hence, I can't make sense of your repro instructions:

After the initialization, execute halmos -vvvv --function test --forge-build-out .cache Actually, out folder will be used to compile code and Halmos can't find the output.

yes, that's why you shouldn't use --forge-build-out .cache but --forge-build-out out (the default value)

0xkarmacoma avatar Aug 02 '24 22:08 0xkarmacoma