Skip to content

Commit

Permalink
Fix #262: build-tags fix for package loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Berezhnoy committed Oct 29, 2018
1 parent 14f4dce commit 33c241b
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 33c241b

Please sign in to comment.