We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29cf4c8 commit ab41198Copy full SHA for ab41198
builder_utils/utils.go
@@ -558,5 +558,10 @@ func GetCachedCoreArchiveFileName(fqbn, coreFolder string) string {
558
coreFolder = absCoreFolder
559
} // silently continue if absolute path can't be detected
560
hash := utils.MD5Sum([]byte(coreFolder))
561
- return "core_" + fqbnToUnderscore + "_" + hash + ".a"
+ realName := "core_" + fqbnToUnderscore + "_" + hash + ".a"
562
+ if len(realName) > 100 {
563
+ // avoid really long names, simply hash the final part
564
+ realName = "core_" + utils.MD5Sum([]byte(fqbnToUnderscore+"_"+hash)) + ".a"
565
+ }
566
+ return realName
567
}
0 commit comments