Fix panic when an element is missing in the checksums array
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
f44a9509a2
commit
5d566fcf15
2
build.go
2
build.go
|
@ -597,7 +597,7 @@ func genBuildEnv(info *distro.OSRelease, scriptdir string) []string {
|
|||
|
||||
func getSources(ctx context.Context, srcdir string, bv *BuildVars) error {
|
||||
if len(bv.Sources) != len(bv.Checksums) {
|
||||
log.Fatal("The checksums array must be the same length as sources")
|
||||
log.Fatal("The checksums array must be the same length as sources").Send()
|
||||
}
|
||||
|
||||
for i, src := range bv.Sources {
|
||||
|
|
Loading…
Reference in New Issue