alexei-led / pumba

Chaos testing, network emulation, and stress testing tool for containers
Apache License 2.0
2.75k stars 193 forks source link

Replace deprecated ioutil with other functions #214

Closed aminvakil closed 2 years ago

aminvakil commented 2 years ago

Fixes https://github.com/alexei-led/pumba/issues/213

ioutilDeprecated: ioutil.ReadAll is deprecated, use io.ReadAll instead

ioutil.ReadFile is deprecated, use os.ReadFile instead
aminvakil commented 2 years ago

I'm not a go developer, but this little change fixed the lint issue and tests pass as well:

https://github.com/aminvakil/aur/pull/79

https://github.com/aminvakil/aur/runs/4416569999?check_suite_focus=true

aminvakil commented 2 years ago

Is there going to be a 0.9.1 release? Also 0.9.0 has been changed once and it breaks my package as its checksum had been changed.

alexei-led commented 2 years ago

Did not plan to release it soon. But can release 0.9.1 if it can help.

aminvakil commented 2 years ago

I have cherry-picked the latest commit for my package currently, no worries!