Skip to content

Conversation

@Juneezee
Copy link
Contributor

@Juneezee Juneezee commented Nov 3, 2021

The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). Since CDS has been upgraded to Go 1.17 (#5973), this PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <[email protected]>
@ovh-cds
Copy link
Collaborator

ovh-cds commented Nov 5, 2021

CDS Report build-all-cds#16745.0 ✘

  • Build
    • Build and Package All ✔
    • Build Debpacker ✔
    • Build OS-Ansible-Inventory ✔
    • Build SMTPMock ✘
    • Lint UI Translate ✔
    • Test CLI ✔
    • Test Engine ✔
    • Test SDK ✔
    • Test SDK Rust ✔
    • Test UI ✔

Copy link
Member

@yesnault yesnault left a comment

Choose a reason for hiding this comment

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

# github.com/ovh/cds/tools/smtpmock
./client.go:49:14: undefined: io.ReadAll

@@ -1,5 +1,5 @@
# build stage
FROM golang:1.15 AS builder
FROM golang:1.17 AS builder
Copy link
Contributor Author

Choose a reason for hiding this comment

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

# github.com/ovh/cds/tools/smtpmock
./client.go:49:14: undefined: io.ReadAll

@yesnault This should be fixed now. The SMTPMock Dockerfile is using Go 1.15 instead of 1.17.

Copy link
Member

Choose a reason for hiding this comment

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

@Juneezee yes, thank you. Can you re-run go mod tidy in tools/smtpmock please? seems that go.mod is no up to date

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yesnault Done. Please take a look again. Thank you.

Copy link
Member

Choose a reason for hiding this comment

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

@Juneezee It's now ok, thank you!

@Juneezee Juneezee requested a review from yesnault November 5, 2021 15:54
@fsamin fsamin merged commit 335bd06 into ovh:master Nov 9, 2021
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.

6 participants