"Raises" section in autogenerated markdown, warning for uploading a package ending in _build

This commit is contained in:
2026-01-22 06:08:36 +11:00
parent d8cddfbbd4
commit 6823f64541
3 changed files with 6 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ def publish(args):
if not os.path.isfile(os.path.join(args.folder_path, "mineral.ini")):
console.print(f"[b red]digpkg: failed to publish mineral: mineral has no \"mineral.ini\" file")
sys.exit(1)
if os.path.basename(os.path.normpath(args.folder_path)).endswith("_build"):
console.print(f"\n[b yellow]You didn't remove the \"_build\" suffix from your mineral's folder name!\n\nIf this is intentional you can ignore this message, however it is bad practice.\nIf this is not intentional, you will be unable to install your package properly using dig.[/]")
# ask for user and pass
console.print("[b]Please authenticate.\n[/]")