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

Running nargo compile in a package within a workspace doesn't write to the workspace target directory #7193

Open
TomAFrench opened this issue Jan 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@TomAFrench
Copy link
Member

Consider the workspace below with two packages a and b.

.
├── Nargo.toml
├── a
│   ├── Nargo.toml
│   ├── Prover.toml
│   └── src
│       └── main.nr
├── b
│   ├── Nargo.toml
│   ├── Prover.toml
│   └── src
│      └── main.nr
└── target

If we run nargo compile from the workspace root then both a.json and b.json are written to the ./target directory at the workspace root. However if I cd into a and then run nargo compile then a.json will be written to a/target rather than ./target.

This is a confusing discrepancy, I would expect that we always write into the ./target directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant