Skip to content

Commit e3d27da

Browse files
committed
debug
1 parent 5a428b6 commit e3d27da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/build.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,16 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
708708
hashFile := func() error {
709709
fp := filepath.Join(pkg.Dir, name)
710710
file, err := buildutil.OpenFile(pkg.bctx, name)
711+
fmt.Printf("buildutil.OpenFile err: %s\n", err)
711712
if errors.Is(err, os.ErrNotExist) {
713+
fmt.Printf("trying natives\n")
712714
nativesCtx := newNativesContext(pkg.ImportPath)
713715
if nativesPkg, e := nativesCtx.Import(pkg.ImportPath, "", 0); e == nil {
714716
fullPath := path.Join(nativesPkg.Dir, name)
715717
file, err = nativesCtx.bctx.OpenFile(fullPath)
718+
fmt.Printf("nativesCtx.bctx.OpenFile err: %s\n", err)
719+
} else {
720+
fmt.Printf("nativesCtx.Import err: %s", e)
716721
}
717722
}
718723
if err != nil {

0 commit comments

Comments
 (0)