Skip to content

Commit 4f08437

Browse files
peterbecichf-f
andauthored
Document handling duplicated module names in monorepo (#1339)
Co-authored-by: Fabrizio Ferrai <[email protected]>
1 parent 6f231fa commit 4f08437

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,9 @@ The `--package` flag is also available for many more commands, such as `build`,
831831

832832
An important property of this "monorepo setup" is that the `output` folder will be shared between all the packages: they will share the same build package set (or build plan when using the solver) and they will be all build together.
833833

834+
> [!NOTE]\
835+
> Remember that you can't have multiple modules with the same name in a single project. This usually happens with the `Main` module being defined multiple times. Rename these modules to something unique.
836+
834837
### Polyrepo support
835838

836839
There might be cases where you want to have multiple loosely-connected codebases in the same repository that do _not_ necessarily build together all the time. This is sometimes called [a "polyrepo"][monorepo-tools].

0 commit comments

Comments
 (0)