Removing the forge test invocation resolves the issue.
Traceback (most recent call last):
File "/venv/bin/crytic-compile", line 8, in <module>
sys.exit(main())
File "/venv/lib/python3.8/site-packages/crytic_compile/__main__.py", line 220, in main
compilations = compile_all(**vars(args))
File "/venv/lib/python3.8/site-packages/crytic_compile/crytic_compile.py", line 722, in compile_all
compilations.append(CryticCompile(target, **kwargs))
File "/venv/lib/python3.8/site-packages/crytic_compile/crytic_compile.py", line 211, in __init__
self._compile(**kwargs)
File "/venv/lib/python3.8/site-packages/crytic_compile/crytic_compile.py", line 633, in _compile
self._platform.compile(self, **kwargs)
File "/venv/lib/python3.8/site-packages/crytic_compile/platform/foundry.py", line 86, in compile
hardhat_like_parsing(crytic_compile, self._target, build_directory, self._target)
File "/venv/lib/python3.8/site-packages/crytic_compile/platform/hardhat.py", line 72, in hardhat_like_parsing
targets_json = loaded_json["output"]
KeyError: 'output'
See e.g. https://github.com/Killpit/zksync-storage-proofs/actions/runs/10022382386/job/27702087316
Removing the
forge test
invocation resolves the issue.