-
Notifications
You must be signed in to change notification settings - Fork 4
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
bump to go1.19 #54
bump to go1.19 #54
Conversation
@@ -13,7 +13,7 @@ type ExecWrap interface { | |||
|
|||
type execWrap struct{} | |||
|
|||
//todo use oswrap.Instance() instead of package local ow? | |||
// todo use oswrap.Instance() instead of package local ow? |
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.
linter complaint ;)
}) | ||
defer os.Remove("/tmp/TestRunCommandStdoutToFile") |
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.
adding to the t.TempDir means it gets cleaned up by the test framework. No more weird remove (which I'm unsure actually worked)
} | ||
func (ow osWrap) WriteFile(filename string, data []byte, perm os.FileMode) error { | ||
return ioutil.WriteFile(filename, data, perm) | ||
return os.WriteFile(filename, data, perm) |
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.
nice that these just worked.
@@ -5,14 +5,13 @@ go 1.17 | |||
require ( | |||
github.com/golang/mock v1.6.0 | |||
github.com/mozilla-services/yaml v0.0.0-20201007153854-c369669a6625 | |||
github.com/spf13/cobra v1.2.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.
this update reduced the dependency list for this package so much! yay!
github.com/spf13/pflag v1.0.5 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect |
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.
we don't use this one, we use the mozilla one above. this is an indirect/transient from cobra
tested by hand too. |
Background
Bump to latest things.
to run golangci-lint in 1.19, had to upgrade past 1.48 -
this introduced some new lints
Versioning
Patch release