mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Warn when no version is provided
This commit is contained in:
parent
ce49820ef5
commit
20e57ac220
@ -170,6 +170,10 @@ var exportCmd = &cobra.Command{
|
|||||||
Dependencies: dependencies,
|
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 := json.NewEncoder(manifestFile)
|
||||||
w.SetIndent("", " ") // Documentation uses 4 spaces
|
w.SetIndent("", " ") // Documentation uses 4 spaces
|
||||||
err = w.Encode(manifest)
|
err = w.Encode(manifest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user