This commit is contained in:
khodowany
2026-09-25 11:37:00 -05:00
parent 17326dbf56
commit 82b9541a03
4 changed files with 51 additions and 2 deletions
@@ -139,7 +139,10 @@ def discover_artifacts(dist_dir, package_name, targets):
artifacts.extend((archive, archive.with_name(archive.name + ".sha256")))
missing = [path for path in artifacts if not path.is_file()]
if missing:
raise SystemExit("missing artifact files: " + ", ".join(str(path) for path in missing))
found = sorted(path.name for path in dist_dir.glob(f"{package_name}-*.tar.gz*") if path.is_file())
raise SystemExit("missing artifact files: " + ", ".join(str(path) for path in missing)
+ "\nFound: " + (", ".join(found) or "none")
+ "\nPublish the current Modulus tooling, run configure --update, and recreate the package so the builder and publisher use the same filenames.")
return artifacts
def upload_file(registry_url, package_name, path, auth):