Skip to content

Commit

Permalink
chore: write a warning if build info contains 200 or more commits (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn authored Jul 12, 2024
1 parent 70a881a commit 6ce8410
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/buildinformation/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ func uploadRun(opts *UploadOptions) error {
return err
}

fmt.Printf("Build information:\n%s\n", string(jsonFile))
fmt.Printf("Build information:\n%s\n", output.Dim(string(jsonFile)))
}

if len(buildInformation.Commits) >= 200 {
fmt.Printf("%s\n", output.Yellow("Warning: Build information contains 200 or more commits, this may be due to a misconfiguration of your build server."))
}

for _, pkgIdString := range opts.PackageId.Value {
Expand Down

0 comments on commit 6ce8410

Please sign in to comment.