Skip to content

Commit

Permalink
Add only default tags in index component (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: thepetk <[email protected]>
  • Loading branch information
thepetk authored Dec 5, 2023
1 parent 7ad160f commit 55fe0c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index/generator/library/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,11 @@ func parseStackDevfile(devfileDirPath string, stackName string, force bool, vers
versionComponent.StarterProjects = append(versionComponent.StarterProjects, starterProject.Name)
}

for _, tag := range versionComponent.Tags {
if !inArray(indexComponent.Tags, tag) {
indexComponent.Tags = append(indexComponent.Tags, tag)
if versionComponent.Default {
for _, tag := range versionComponent.Tags {
if !inArray(indexComponent.Tags, tag) {
indexComponent.Tags = append(indexComponent.Tags, tag)
}
}
}

Expand Down

0 comments on commit 55fe0c4

Please sign in to comment.