Skip to content

gbb.json中的version值不满足xx.xx.xx格式情况下,提示语的末尾出现意外的% #20

Closed
@voidint

Description

@voidint

在MacOS下,将gbb.json的内容改成这样:

{
    "version": "`.3.0",
    "tool": "gb build",
    "package": "build",
    "variables": [
        {
            "variable": "Date",
            "value": "{{.Date}}"
        },
        {
            "variable": "Commit",
            "value": "{{.GitCommit}}"
        }
    ]
}

再执行gbb --debug,将出现以下内容:

malformed semantic version%

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions