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

handle "failed to read artifact source file" #3325

Open
holic opened this issue Oct 23, 2024 · 0 comments
Open

handle "failed to read artifact source file" #3325

holic opened this issue Oct 23, 2024 · 0 comments

Comments

@holic
Copy link
Member

holic commented Oct 23, 2024

currently forge has an issue (foundry-rs/foundry#9068) where build artifacts of removed source files linger and when forge goes to compile, it tries to find the source file of those artifacts and throws up because it was deleted

2024-10-23T14:42:38.764827Z ERROR foundry_compilers_artifacts_solc::sources: error="/path/to/source.sol": No such file or directory (os error 2)

 Error while attempting deploy 

Error: Error: 
failed to read artifact source file for `/path/to/source.sol`

Context:
- "/path/to/source.sol": No such file or directory (os error 2)

we can work around this in MUD by detecting this error, forge clean and re-run for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants
@holic and others