Skip to content

docs: workspace page #4805

@iAmMichaelConnor

Description

@iAmMichaelConnor

Aim

https://noir-lang.org/docs/noir/modules_packages_crates/workspaces

The workspace Nargo.toml currently reads:

[workspace]
members = ["crates/a", "crates/b"]
default-member = "crates/a"

It should instead read:

[workspace]
members = ["a", "b"]
default-member = "a"

i.e. remove the crates word from the paths.

Before making this change, I was getting this error when running nargo compile from within crate a:

Cannot read file /Users/mike/git/my_project/crates/crates/a/Nargo.toml - does it exist?

Hoping no one else will have to lose 15 mins of life wondering why the workspace wasn't compiling :)

nargo version = 0.26.0
noirc version = 0.26.0+c46b164ce56e6a8f81255fb17eb6539bd040f336
(git version hash: c46b164ce56e6a8f81255fb17eb6539bd040f336, is dirty: false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions