Fix panic when an element is missing in the checksums array
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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 {
|
func getSources(ctx context.Context, srcdir string, bv *BuildVars) error {
|
||||||
if len(bv.Sources) != len(bv.Checksums) {
|
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 {
|
for i, src := range bv.Sources {
|
||||||
|
Loading…
Reference in New Issue
Block a user