Skip to content

Commit

Permalink
Fix #261: build-tags fix for package loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Berezhnoy authored and jirfag committed Oct 29, 2018
1 parent 14f4dce commit f5f7701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lint/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (cl ContextLoader) loadPackages(ctx context.Context, loadMode packages.Load
var buildFlags []string
if len(cl.cfg.Run.BuildTags) != 0 {
// go help build
buildFlags = []string{fmt.Sprintf("-tags '%s'", strings.Join(cl.cfg.Run.BuildTags, " "))}
buildFlags = []string{"-tags", strings.Join(cl.cfg.Run.BuildTags, " ")}
}
conf := &packages.Config{
Mode: loadMode,
Expand Down

0 comments on commit f5f7701

Please sign in to comment.