Skip to content

Commit e7ef0f5

Browse files
committed
chore: Print debug info of release and asset in SelfUpdate function
1 parent e36a7ac commit e7ef0f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/utils/version.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,17 @@ func SelfUpdate() error {
5252
return err
5353
}
5454

55+
// print debug info of release
56+
fmt.Printf("Release: %s\n", release.TagName)
57+
5558
assetURL := getAssetURL(release)
5659
if assetURL == "" {
5760
return fmt.Errorf("no suitable binary found for this system")
5861
}
5962

63+
// print debug info of asset
64+
fmt.Printf("Asset URL: %s\n", assetURL)
65+
6066
// Download the new binary
6167
resp, err := http.Get(assetURL)
6268
if err != nil {

0 commit comments

Comments
 (0)