@@ -79,7 +79,6 @@ func main() {
7979 if err := handleTool (client , ver , tmp , tb , tool ); err != nil {
8080 panic (err )
8181 }
82-
8382 }
8483
8584 // save versions
@@ -107,6 +106,7 @@ func handleTool(client *resty.Client, ver map[string]string, tmp string, tb *typ
107106 SetResult (ghr ).
108107 SetHeader ("Accept" , "application/json" )
109108 if t , ok := os .LookupEnv ("GITHUB_TOKEN" ); ok {
109+ log .Printf ("Using github toklen\n " )
110110 ghc = ghc .SetAuthToken (t )
111111 }
112112 _ , err := ghc .
@@ -147,19 +147,25 @@ func handleTool(client *resty.Client, ver map[string]string, tmp string, tb *typ
147147 }
148148 } else if ghr != nil {
149149 matching := findMatching (tool .Name , ghr .Assets )
150+ tool .CouldNotBeFound = true
150151 if matching != nil {
152+ tool .CouldNotBeFound = false
151153 if err := fetchTool (tmp , tool .Name , tool .Name , matching .BrowserDownloadURL , tb .Target ); err != nil {
152154 return err
153155 }
154156 }
155157 for _ , add := range tool .Additional {
156158 matching := findMatching (add , ghr .Assets )
157159 if matching != nil {
160+ tool .CouldNotBeFound = false
158161 if err := fetchTool (tmp , add , add , matching .BrowserDownloadURL , tb .Target ); err != nil {
159162 return err
160163 }
161164 }
162165 }
166+ if tool .CouldNotBeFound {
167+ log .Printf ("❌ Couldn't find a file here!\n " )
168+ }
163169 }
164170 return nil
165171}
0 commit comments