Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

若gbb.json的tool属性值包含空格则无法正常编译 #24

Closed
voidint opened this issue May 1, 2017 · 0 comments
Closed

若gbb.json的tool属性值包含空格则无法正常编译 #24

voidint opened this issue May 1, 2017 · 0 comments
Labels

Comments

@voidint
Copy link
Owner

voidint commented May 1, 2017

{
    "version": "0.4.0",
    "tool": "go build -gcflags='-N -l'",
    "importpath": "github.com/voidint/gbb/build",
    "variables": [
        {
            "variable": "Date",
            "value": "{{.Date}}"
        },
        {
            "variable": "Commit",
            "value": "{{.GitCommit}}"
        }
    ]
}

若使用以上的配置文件,那么无法进行正常的编译。

strings.Fields("go build -gcflags='-N -l'")将拆分成gobuild-gcflags='-N-l',与预期不符。

@voidint voidint changed the title gbb.json的tool属性值包含空格时无法正常编译 若gbb.json的tool属性值包含空格则无法正常编译 May 1, 2017
@voidint voidint added the bug label May 1, 2017
@voidint voidint closed this as completed in 96d5628 Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant