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: add script/ to project paths #1877

Merged
merged 4 commits into from Jun 8, 2022

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Jun 8, 2022

Motivation

Pending / Ref: gakonst/ethers-rs#1359

Currently, our convention on foundry is to have scripts in the script/ folder. 
However, the folder does not actually belong to the project. It may lead to weird issues, 
if there's contracts declared inside when verifying contracts.

Alternatively, we could also add a more generic additional_sources where by default we add the script/ folder.

Solution

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, that makes imo

@joshieDo joshieDo marked this pull request as ready for review June 8, 2022 13:04
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -296,7 +296,7 @@ impl BuildArgs {
// use the path arguments or if none where provided the `src` dir
self.watch.watchexec_config(|| {
let config = Config::from(self);
vec![config.src, config.test]
vec![config.src, config.test, config.script]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@mattsse mattsse merged commit e6efd2d into foundry-rs:master Jun 8, 2022
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.

None yet

2 participants