Skip to content

Conversation

hsy822
Copy link
Collaborator

@hsy822 hsy822 commented Oct 1, 2025

Problem

The previous compilation logic used a flexible search to locate Nargo.toml and determine the project root.
This could lead to unintended behavior, such as:

  • Zipping the entire workspace
  • Selecting the wrong directory for compilation
  • Errors when users did not follow a standard project structure

Solution

This PR modifies the logic to enforce a strict, conventional Noir project structure.

  • A .nr file must be located inside a src folder
  • A Nargo.toml file must exist in the parent directory of the src folder (the project root)
  • If these conditions are not met, the compilation process is aborted
  • A clear error message is shown to the user, guiding them to set up their project correctly

Copy link

netlify bot commented Oct 1, 2025

Deploy Preview for reliable-cocada-166884 ready!

Name Link
🔨 Latest commit 4df66dd
🔍 Latest deploy log https://app.netlify.com/projects/reliable-cocada-166884/deploys/68dcc16f8466cc0008fad735
😎 Deploy Preview https://deploy-preview-6422--reliable-cocada-166884.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hsy822 hsy822 added the ready-to-review PR ready to review label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-review PR ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant