Skip to content

Commit 642931c

Browse files
committed
Remove no longer relevant fmtTags
1 parent fea8490 commit 642931c

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
@@ -162,7 +162,7 @@ var loadPackages = func(cfg *packages.Config, paths ...string) ([]*packages.Pack
162162
// LoadPackages loads all the packages in all the paths provided. It uses the
163163
// exclusions and build tags provided to by the user when loading the packages.
164164
func (c *Checker) LoadPackages(paths ...string) ([]*packages.Package, error) {
165-
buildFlags := []string{fmtTags(c.Tags)}
165+
buildFlags := []string{fmt.Sprintf("-tags=%s", strings.Join(c.Tags, ","))}
166166
if c.Mod != "" {
167167
buildFlags = append(buildFlags, fmt.Sprintf("-mod=%s", c.Mod))
168168
}

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)