Following commit
0155cabbb7b22494b3d5da1425059387d8236cf2, the number of
artifacts produced during packaging is down to 40. We expect this count to rise
as the CMake build system continues to be worked on, operating systems move in
and out of support cycles, and the Cygwin/Msys builds are tweaked. This change
introduced a safe guard to fail deployment if the number of artifacts grows to
exceed 50 again.
Related to #2147.
for c in checksum(path):
assets.append(upload(package_version, c, str(c)[len("Packages/"):]))
+ # various release pages truncate the viewable artifacts to 100 or even 50
+ if not options.force and len(assets) > 50:
+ log.error(f"upload has {len(assets)} assets, which will result in some of "
+ "them being unviewable in web page lists")
+ return -1
+
# we only create Gitlab releases for stable version numbers
if not options.force:
if re.match(r"\d+\.\d+\.\d+$", options.version) is None: