File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -607,7 +607,10 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
607
607
return nil , fmt .Errorf ("could not open %v: %v" , binPath , err )
608
608
}
609
609
defer binFile .Close ()
610
- io .Copy (pkgHash , binFile )
610
+
611
+ binHash := sha256 .New ()
612
+ io .Copy (binHash , binFile )
613
+ fmt .Fprintf (pkgHash , "gopherjs bin: %#x\n " , binHash .Sum (nil ))
611
614
612
615
orderedBuildTags := append ([]string {}, s .options .BuildTags ... )
613
616
sort .Strings (orderedBuildTags )
@@ -640,7 +643,7 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
640
643
}
641
644
642
645
fmt .Fprintf (pkgHash , "import: %v\n " , importedPkgPath )
643
- fmt .Fprintf (pkgHash , " hash: %v \n " , importedArchive .Hash )
646
+ fmt .Fprintf (pkgHash , " hash: %#x \n " , importedArchive .Hash )
644
647
}
645
648
646
649
for _ , name := range append (pkg .GoFiles , pkg .JSFiles ... ) {
You can’t perform that action at this time.
0 commit comments