Skip to content

Conversation

thedadams
Copy link
Contributor

No description provided.

@@ -249,7 +252,8 @@ func (r *Runtime) Binary(ctx context.Context, tool types.Tool, _, toolSource str
return false, nil, nil
}

rel, ok := getLatestRelease(tool)
// ignore the error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we need to ignore the error here, while not on the getLatestRelease method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The getLatestRelease is best-effort because we don't know if the tool actually has a release. So errors don't really matter....

Except for the credential helpers. We know those have releases and we expect them to be used.

@thedadams thedadams merged commit c0f116c into gptscript-ai:main Sep 11, 2024
10 checks passed
@thedadams thedadams deleted the report-errors-github-release branch September 11, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants