@@ -36,7 +36,7 @@ type FetchOptions struct {
3636 WithProgress bool
3737
3838 // Project logger
39- Logger * logrus.Logger
39+ Logger * logrus.Entry
4040}
4141
4242type AssetDownloadResult struct {
@@ -176,7 +176,7 @@ func runFetchWrapper(c *cli.Context) {
176176}
177177
178178// Run the fetch program
179- func runFetch (c * cli.Context , logger * logrus.Logger ) error {
179+ func runFetch (c * cli.Context , logger * logrus.Entry ) error {
180180 options := parseOptions (c , logger )
181181 if err := validateOptions (options ); err != nil {
182182 return err
@@ -278,7 +278,7 @@ func runFetch(c *cli.Context, logger *logrus.Logger) error {
278278 return nil
279279}
280280
281- func parseOptions (c * cli.Context , logger * logrus.Logger ) FetchOptions {
281+ func parseOptions (c * cli.Context , logger * logrus.Entry ) FetchOptions {
282282 localDownloadPath := c .Args ().First ()
283283 sourcePaths := c .StringSlice (optionSourcePath )
284284 assetChecksums := c .StringSlice (optionReleaseAssetChecksum )
@@ -340,7 +340,7 @@ func validateOptions(options FetchOptions) error {
340340}
341341
342342// Download the specified source files from the given repo
343- func downloadSourcePaths (logger * logrus.Logger , sourcePaths []string , destPath string , githubRepo GitHubRepo , latestTag string , branchName string , commitSha string , instance GitHubInstance ) error {
343+ func downloadSourcePaths (logger * logrus.Entry , sourcePaths []string , destPath string , githubRepo GitHubRepo , latestTag string , branchName string , commitSha string , instance GitHubInstance ) error {
344344 if len (sourcePaths ) == 0 {
345345 return nil
346346 }
@@ -406,7 +406,7 @@ func downloadSourcePaths(logger *logrus.Logger, sourcePaths []string, destPath s
406406// were downloaded. For those that succeeded, the path they were downloaded to will be passed back
407407// along with the error.
408408// Returns the paths where the release assets were downloaded.
409- func downloadReleaseAssets (logger * logrus.Logger , assetRegex string , destPath string , githubRepo GitHubRepo , tag string , withProgress bool ) ([]string , error ) {
409+ func downloadReleaseAssets (logger * logrus.Entry , assetRegex string , destPath string , githubRepo GitHubRepo , tag string , withProgress bool ) ([]string , error ) {
410410 var err error
411411 var assetPaths []string
412412
0 commit comments