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

Allow configuring the source directory #1040

Closed
1 task done
TomAFrench opened this issue Mar 25, 2023 · 0 comments · Fixed by #2158
Closed
1 task done

Allow configuring the source directory #1040

TomAFrench opened this issue Mar 25, 2023 · 0 comments · Fixed by #2158
Assignees
Labels
enhancement New feature or request

Comments

@TomAFrench
Copy link
Member

Problem

I mentioned in #1009 (comment) that foundry projects tend to use the src directory for contracts. This opens up an issue for if you want to use Noir within a foundry project, by default these will write noir and solidity code to the same directory

Proposed solution

We could allow users to remap directories to custom paths by setting them in Nargo.toml similarly to how foundry does in foundry.toml.

https://book.getfoundry.sh/reference/config/project

Alternatives considered

There are alternatives for the meantime:

  • Perform this remapping within foundry to move the solidity code rather than noir code.
  • Move the Noir project into a different directory.

Additional context

No response

Submission Checklist

  • Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants