Skip to content

Commit f81283f

Browse files
committed
get build package from packages.Package for golangci/golangci#12
1 parent 2db694a commit f81283f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/packages/package.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ func (pkg *Package) TestFiles() []string {
5353
pkgFiles = append(pkgFiles, pkg.bp.XTestGoFiles...)
5454
return pkgFiles
5555
}
56+
57+
func (pkg *Package) BuildPackage() *build.Package {
58+
return pkg.bp
59+
}

0 commit comments

Comments
 (0)