golangci-lint found 5 issues related to your changes
If you have any questions about this comment, feel free to raise an issue here.
Annotations
Check warning on line 241 in gopbuild/build.go
qiniu-x / golangci-lint
gopbuild/build.go#L241
typeSwitchVar: 1 case can benefit from type switch with assignment (gocritic)
Check warning on line 231 in gopbuild/build.go
qiniu-x / golangci-lint
gopbuild/build.go#L231
`if gop` has complex nested blocks (complexity: 5) (nestif)
Check warning on line 679 in context.go
qiniu-x / golangci-lint
context.go#L679
cognitive complexity 50 of func `(*Context).buildPackage` is high (> 30) (gocognit)
Check warning on line 354 in context.go
qiniu-x / golangci-lint
context.go#L354
string `main` has 5 occurrences, make it a constant (goconst)
Check warning on line 122 in context.go
qiniu-x / golangci-lint
context.go#L122
`if sp.Info == nil` has complex nested blocks (complexity: 14) (nestif)