-
Notifications
You must be signed in to change notification settings - Fork 295
chore: upgrade Go to 1.23.0 #796
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
Conversation
Signed-off-by: Donnie Adams <[email protected]>
@@ -22,7 +22,7 @@ smoke: build | |||
smoke: | |||
go test -v -tags='smoke' ./pkg/tests/smoke/... | |||
|
|||
GOLANGCI_LINT_VERSION ?= v1.59.0 | |||
GOLANGCI_LINT_VERSION ?= v1.60.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump to support Go 1.23
@@ -86,7 +86,7 @@ func getOpenAPITools(t *openapi3.T, defaultHost, source, targetToolName string) | |||
pathObj := pathMap[pathString] | |||
// Handle path-level server override, if one exists | |||
pathServer := defaultServer | |||
if pathObj.Servers != nil && len(pathObj.Servers) > 0 { | |||
if len(pathObj.Servers) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New linter complaint.
@@ -83,7 +83,7 @@ func GetSchema(operationID, defaultHost string, t *openapi3.T) (string, Operatio | |||
for path, pathItem := range t.Paths.Map() { | |||
// Handle path-level server override, if one exists. | |||
pathServer := defaultServer | |||
if pathItem.Servers != nil && len(pathItem.Servers) > 0 { | |||
if len(pathItem.Servers) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New linter complaint.
@@ -136,7 +136,7 @@ func (r *Runtime) runNPM(ctx context.Context, tool types.Tool, toolSource, binDi | |||
if tool.WorkingDir == "" { | |||
return nil | |||
} | |||
if _, err := os.Stat(filepath.Join(tool.WorkingDir, packageJSON)); errors.Is(fs.ErrNotExist, err) { | |||
if _, err := os.Stat(filepath.Join(tool.WorkingDir, packageJSON)); errors.Is(err, fs.ErrNotExist) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New linter complaint, which is actually a bug.
@@ -271,7 +271,7 @@ func (s *server) parse(w http.ResponseWriter, r *http.Request) { | |||
} else { | |||
content, loadErr := input.FromLocation(reqObject.File, reqObject.DisableCache) | |||
if loadErr != nil { | |||
logger.Errorf(loadErr.Error()) | |||
logger.Errorf("failed to load file: %v", loadErr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New linter complaint.
No description provided.