@@ -354,8 +354,11 @@ func cmdBuildInfo(fl Flags) (int, error) {
354
354
return caddy .ExitCodeFailedStartup , fmt .Errorf ("no build information" )
355
355
}
356
356
357
- fmt .Printf ("path: %s\n " , bi .Path )
358
- fmt .Printf ("main: %s %s %s\n " , bi .Main .Path , bi .Main .Version , bi .Main .Sum )
357
+ fmt .Printf ("go_version: %s\n " , runtime .Version ())
358
+ fmt .Printf ("go_os: %s\n " , runtime .GOOS )
359
+ fmt .Printf ("go_arch: %s\n " , runtime .GOARCH )
360
+ fmt .Printf ("path: %s\n " , bi .Path )
361
+ fmt .Printf ("main: %s %s %s\n " , bi .Main .Path , bi .Main .Version , bi .Main .Sum )
359
362
fmt .Println ("dependencies:" )
360
363
361
364
for _ , goMod := range bi .Deps {
@@ -670,6 +673,7 @@ func cmdUpgrade(_ Flags) (int, error) {
670
673
defer destFile .Close ()
671
674
672
675
l .Info ("downloading binary" , zap .String ("source" , urlStr ), zap .String ("destination" , thisExecPath ))
676
+
673
677
_ , err = io .Copy (destFile , resp .Body )
674
678
if err != nil {
675
679
return fmt .Errorf ("unable to download file: %v" , err )
@@ -687,6 +691,8 @@ func cmdUpgrade(_ Flags) (int, error) {
687
691
return caddy .ExitCodeFailedStartup , err
688
692
}
689
693
694
+ l .Info ("download successful; displaying new binary details" , zap .String ("location" , thisExecPath ))
695
+
690
696
// use the new binary to print out version and module info
691
697
fmt .Print ("\n Module versions:\n \n " )
692
698
cmd := exec .Command (thisExecPath , "list-modules" , "--versions" )
0 commit comments