Skip to content

Commit

Permalink
feat: update module name checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaclan committed Jul 26, 2024
1 parent cf8ac05 commit 62a03b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions core/recipe.cue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ for i, stg in stages {
}

if stg.modules != _|_ {
for i, mod in stg.modules {
_uniqueModuleNames: {"\(mod.name)": i}
for i2, mod in stg.modules {
_uniqueRecipeModuleNames: {"\(mod.name)": i}
_uniqueStageModuleNames: {"\(mod.name)": i2}
_uniqueRecipeName: true & mod.name != name
}
}
Expand Down
5 changes: 3 additions & 2 deletions example/play.cue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ for i, stg in stages {
}

if stg.modules != _|_ {
for i, mod in stg.modules {
_uniqueModuleNames: {"\(mod.name)": i}
for i2, mod in stg.modules {
_uniqueRecipeModuleNames: {"\(mod.name)": i}
_uniqueStageModuleNames: {"\(mod.name)": i2}
_uniqueRecipeName: true & mod.name != name
}
}
Expand Down

0 comments on commit 62a03b5

Please sign in to comment.