若gbb.json的tool属性值包含空格则无法正常编译
voidint opened this issue · comments
{
"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'")
将拆分成go
、build
、-gcflags='-N
、-l'
,与预期不符。