Skip to content

Commit b985b30

Browse files
committed
fix BuildPackage return value
1 parent e3a9838 commit b985b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
542542
if err := s.writeLibraryPackage(archive, filepath.Join(firstGopathWorkspace, pkg.PkgObj[len(s.options.GOROOT):])); err != nil {
543543
return nil, err
544544
}
545-
return nil, nil
545+
return archive, nil
546546
}
547547
return nil, err
548548
}

0 commit comments

Comments
 (0)