Skip to content

Commit 0fe9f58

Browse files
authored
Merge branch 'master' into deprecate-err-no-go-files
2 parents 4c2ee23 + 85b3c63 commit 0fe9f58

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

errcheck/errcheck.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ var loadPackages = func(cfg *packages.Config, paths ...string) ([]*packages.Pack
164164
// LoadPackages loads all the packages in all the paths provided. It uses the
165165
// exclusions and build tags provided to by the user when loading the packages.
166166
func (c *Checker) LoadPackages(paths ...string) ([]*packages.Package, error) {
167-
buildFlags := []string{fmtTags(c.Tags)}
167+
buildFlags := []string{fmt.Sprintf("-tags=%s", strings.Join(c.Tags, ","))}
168168
if c.Mod != "" {
169169
buildFlags = append(buildFlags, fmt.Sprintf("-mod=%s", c.Mod))
170170
}

errcheck/tags.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

errcheck/tags_compat.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)