diff --git a/modrinth/export.go b/modrinth/export.go index e22c940..339ec08 100644 --- a/modrinth/export.go +++ b/modrinth/export.go @@ -170,6 +170,10 @@ var exportCmd = &cobra.Command{ Dependencies: dependencies, } + if len(pack.Version) == 0 { + fmt.Println("Warning: pack.toml version field must not be empty to create a valid Modrinth pack") + } + w := json.NewEncoder(manifestFile) w.SetIndent("", " ") // Documentation uses 4 spaces err = w.Encode(manifest)