Skip to content

Conversation

@johnstcn
Copy link
Member

Adds warning diagnostics to aid in troubleshooting issues with cached builds.

@johnstcn johnstcn self-assigned this Aug 13, 2024
if err != nil {
if !strings.Contains(err.Error(), "MANIFEST_UNKNOWN") {
resp.Diagnostics.AddError("Error checking remote image", err.Error())
// Explicitly not making this an error diag.

Choose a reason for hiding this comment

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

Why?

Copy link
Member Author

Choose a reason for hiding this comment

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

The check for the image not being present is a bit fragile and I'd rather not have a false negative get in the way here.

@johnstcn johnstcn merged commit b35004a into main Aug 13, 2024
@johnstcn johnstcn deleted the cj/add-warning-diags branch August 13, 2024 12:13
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.

2 participants