Merge pull request #3053 from tonistiigi/modernize-fixes

lint: apply x/tools/modernize fixes and validation
This commit is contained in:
Tõnis Tiigi
2025-03-10 18:37:51 -07:00
committed by GitHub
50 changed files with 238 additions and 266 deletions

View File

@ -375,7 +375,7 @@ workers0:
out.Error.Name = name
out.Error.Logs = logs
}
out.Error.Stack = []byte(fmt.Sprintf("%+v", stack.Formatter(retErr)))
out.Error.Stack = fmt.Appendf(nil, "%+v", stack.Formatter(retErr))
}
}

View File

@ -161,7 +161,7 @@ type lsContext struct {
}
func (c *lsContext) MarshalJSON() ([]byte, error) {
m := map[string]interface{}{
m := map[string]any{
"ref": c.FullRef(),
"name": c.Name(),
"status": c.Status(),