Skip to content

Commit c9c6c67

Browse files
author
Pavel Berezhnoy
committed
#262: build-tags fix for package loader
1 parent 14f4dce commit c9c6c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lint/load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (cl ContextLoader) loadPackages(ctx context.Context, loadMode packages.Load
196196
var buildFlags []string
197197
if len(cl.cfg.Run.BuildTags) != 0 {
198198
// go help build
199-
buildFlags = []string{fmt.Sprintf("-tags '%s'", strings.Join(cl.cfg.Run.BuildTags, " "))}
199+
buildFlags = []string{"-tags", strings.Join(cl.cfg.Run.BuildTags, " ")}
200200
}
201201
conf := &packages.Config{
202202
Mode: loadMode,

0 commit comments

Comments
 (0)