Skip to content

Commit

Permalink
Update schema check flag (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Jan 12, 2024
1 parent 8ef04f7 commit f884348
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/builder/csolution/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (b CSolutionBuilder) getCprjsBuilders(selectedContexts []string) (cprjBuild
log.Error("error getting cprj file: " + err.Error())
return cprjBuilders, err
}

// get cprj builder
cprjBuilder := cproject.CprjBuilder{
BuilderParams: builder.BuilderParams{
Expand All @@ -220,6 +221,12 @@ func (b CSolutionBuilder) getCprjsBuilders(selectedContexts []string) (cprjBuild
InstallConfigs: b.InstallConfigs,
},
}

// Set XML schema check to false, when input is yml
if b.Options.Schema {
cprjBuilder.Options.Schema = false
}

cprjBuilders = append(cprjBuilders, cprjBuilder)
}
return cprjBuilders, err
Expand Down

0 comments on commit f884348

Please sign in to comment.