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

fix(forge): Small fix for ProjectCompiler #6935

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jan 29, 2024

Motivation

Currently ProjectCompiler exits with "Nothing to compile" if project.paths does not have any input files. However, this is incorrect as we may have non-empty files field on it.

The usecase is to compile an arbitrary set of files which does necessarily form a correct foundry project layout.

Solution

We are mem:take'ing files field in compile, so I moved a "Nothing to compile" check there.

@mattsse mattsse merged commit 3de288b into foundry-rs:master Jan 29, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants