Skip to content

Comments

refactor: move from io/ioutil to io and os packages#10528

Merged
roidelapluie merged 3 commits intoprometheus:mainfrom
mmorel-35:ioutil
Apr 27, 2022
Merged

refactor: move from io/ioutil to io and os packages#10528
roidelapluie merged 3 commits intoprometheus:mainfrom
mmorel-35:ioutil

Conversation

@mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 commented Apr 4, 2022

In go 1.16 io/ioutil package is deprecated, see https://go.dev/doc/go1.16#ioutil

mmorel-35 and others added 2 commits April 4, 2022 10:09
Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
Copy link
Member

@metalmatze metalmatze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, no surprises in the code! 👍
There seems to be either a flaky test or something slightly off with moving to the other/new Temp funcs:
https://app.circleci.com/pipelines/github/prometheus/prometheus/16508/workflows/301b1fdb-1683-4997-9bdd-e6fbc7d15565/jobs/79014?invite=true#step-103-18

Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
@mmorel-35
Copy link
Contributor Author

Hi! What is blocking the merge? Are you expecting me to do anything else?

@roidelapluie roidelapluie merged commit e2ede28 into prometheus:main Apr 27, 2022
@roidelapluie
Copy link
Member

Thanks!

@mmorel-35 mmorel-35 deleted the ioutil branch April 27, 2022 10:04
roidelapluie pushed a commit to roidelapluie/prometheus that referenced this pull request Jun 22, 2022
* refactor: move from io/ioutil to io and os packages
* use fs.DirEntry instead of os.FileInfo after os.ReadDir

Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants