-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade go to 1.24.6 and fix linters #7
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
base: master
Are you sure you want to change the base?
Conversation
c8bd669
to
26fd3e9
Compare
Signed-off-by: Friedrich Gonzalez <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
Signed-off-by: Friedrich Gonzalez <[email protected]>
3d119c7
to
03cb3f2
Compare
@@ -1,35 +0,0 @@ | |||
package exec |
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.
cortexproject/cortex doesn't use this
|
||
// Add a blank line between cmd description and list of options | ||
if fs.FlagCount() > 0 { | ||
fmt.Fprintln(writer, "") |
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.
This part appears to be part of the older docker project. I bet there is an updated version somewhere. Not fixing the bugs in this PR
@@ -1,33 +0,0 @@ | |||
package network |
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.
cortexproject/cortex doesn't use this
@@ -1,24 +0,0 @@ | |||
package test |
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.
cortexproject/cortex doesn't use this
if err != nil { | ||
return nil, err | ||
} | ||
defer fh.Close() |
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.
fs/fs.go:34:16: Error return value of `fh.Close` is not checked (errcheck)
defer fh.Close()
But cortexproject/cortex doesn't use this, so let's remove it
} | ||
|
||
func (c *realCmd) SetEnv(env []string) { | ||
c.Cmd.Env = env |
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.
exec/exec.go:34:4: QF1008: could remove embedded field "Cmd" from selector (staticcheck)
c.Cmd.Env = env
head, tail := split(path) | ||
fs, ok := p.entries[head] | ||
if !ok { | ||
return nil, fmt.Errorf("Not found: %s", path) |
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.
test/fs/fs.go:89:15: ST1005: error strings should not be capitalized (staticcheck)
return nil, fmt.Errorf("Not found: %s", path)
head, tail := split(path) | ||
fs, ok := p.entries[head] | ||
if !ok { | ||
return nil, fmt.Errorf("Not found: %s", path) |
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.
test/fs/fs.go:117:15: ST1005: error strings should not be capitalized (staticcheck)
return nil, fmt.Errorf("Not found: %s", path)
|
||
func (p dir) ReadFile(path string) ([]byte, error) { | ||
if path == "/" { | ||
return nil, fmt.Errorf("I'm a directory") |
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.
test/fs/fs.go:130:15: ST1005: error strings should not be capitalized (staticcheck)
return nil, fmt.Errorf("I'm a directory")
fmt.Printf("Error updating scheduler: %v\n", err) | ||
} else { | ||
resp.Body.Close() | ||
resp.Body.Close() //nolint:errcheck |
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.
no idea if changing this means anything
No description provided.