Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Jun 20, 2020
1 parent e8f950e commit 4be101c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd_gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,9 @@ func main() {
}

compatReports = commonci.ValidatorAndVersionsDiff(compatReports, skippedValidators)
if !pushToMaster {
// Notify later CI steps of the validators that should be reported as a compatibility report.
if err := ioutil.WriteFile(commonci.CompatReportValidatorsFile, []byte(compatReports), 0444); err != nil {
log.Fatalf("error while writing compatibility report validators file %q: %v", commonci.CompatReportValidatorsFile, err)
}
// Notify later CI steps of the validators that should be reported as a compatibility report.
if err := ioutil.WriteFile(commonci.CompatReportValidatorsFile, []byte(compatReports), 0444); err != nil {
log.Fatalf("error while writing compatibility report validators file %q: %v", commonci.CompatReportValidatorsFile, err)
}

_, compatValidatorsMap := commonci.GetValidatorAndVersionsFromString(compatReports)
Expand Down

0 comments on commit 4be101c

Please sign in to comment.