Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bubble up errors when downloading credential helper fails #845

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

thedadams
Copy link
Contributor

No description provided.

Signed-off-by: Donnie Adams <donnie@acorn.io>
@@ -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