mirror of
https://github.com/apple/pkl.git
synced 2026-04-29 11:47:13 +02:00
Report error on circular local dependencies (#731)
If a stack overflow is found during project evaluation, present any circular imports found in the dependency graph.
This commit is contained in:
@@ -827,6 +827,21 @@ Microbenchmark is a constant expression.
|
||||
stackOverflow=\
|
||||
A stack overflow occurred.
|
||||
|
||||
cannotHaveCircularProjectDependenciesSingle=\
|
||||
Local project dependencies cannot be circular.\n\
|
||||
\n\
|
||||
Cycle:\n\
|
||||
{0}
|
||||
|
||||
cannotHaveCircularProjectDependenciesMultiple=\
|
||||
Local project dependencies cannot be circular.\n\
|
||||
\n\
|
||||
The following circular imports were found.\n\
|
||||
Not all of them are necessarily problematic.\n\
|
||||
The problematic cycles are those declared as local dependencies.\n\
|
||||
\n\
|
||||
{0}
|
||||
|
||||
multipleUnionDefaults=\
|
||||
A type union cannot have more than one default type.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user