Skip to content

Commit 8c9e21a

Browse files
committed
Copying spec files as well
1 parent 49a9dfc commit 8c9e21a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

magefile.go

+16
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,22 @@ func fileHelperWithManifest(requiredPackage string, versionedFlatPath string, ve
14121412
panic(err)
14131413
}
14141414

1415+
// copy spec file for match
1416+
specName := filepath.Base(dirToCopy)
1417+
log.Printf(">>>> XXX manURL specName: [%s]", specName)
1418+
idx := strings.Index(specName, "-"+componentVersion)
1419+
if idx != -1 {
1420+
specName = specName[:idx]
1421+
log.Printf(">>>> XXX manURL specName[:idx] [%s]", specName)
1422+
}
1423+
log.Printf(">>>> XXX manURL specName final: [%s]", specName)
1424+
1425+
checksum, err := copyComponentSpecs(specName, versionedDropPath)
1426+
if err != nil {
1427+
panic(err)
1428+
}
1429+
1430+
checksums[specName+specSuffix] = checksum
14151431
}
14161432
}
14171433
}

0 commit comments

Comments
 (0)