Skip to content
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

Fix Dependabot alerts #1101

Merged
merged 1 commit into from
Apr 2, 2023
Merged

Fix Dependabot alerts #1101

merged 1 commit into from
Apr 2, 2023

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Mar 19, 2023

  • Bump Operator SDK version to v0.26.3
  • upgrade golangci to v1.51.2
  • dependabot
    • golangorg/x/text
    • golang.org/x/crypto
    • golang.org/x/net

go.mod Outdated
golang.org/x/text v0.3.4 => golang.org/x/text v0.3.8
golang.org/x/text v0.3.5 => golang.org/x/text v0.3.8
golang.org/x/text v0.3.6 => golang.org/x/text v0.3.8
golang.org/x/text v0.3.7 => golang.org/x/text v0.3.8
Copy link
Member

Choose a reason for hiding this comment

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

why do we have to maintain such a complex replacement array?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @ytsarev , I don't like it much either. I tried to bump core modules to avoid using old modules in module tree. Unfortunately they are there. It's not a lot of libraries, rather they are used differently across different dependencies.

For example, if I don't do a replace in go.mod, I'll see this in our dependency tree (go.sum)

golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=

but depndabot is disingenuous and will mark all golang.org/x/text that are older than v.0.3.8 (see: dependabot alert)


I see that dependabot only marked golang.org/x/net in k8gb, the rest was marked in terratests ( crypto and golang.org/x/text). Since the same problem is also in k8gb, I'll mark it there soon too.

For now, I'm replacing only what is strictly necessary to avoid dependabot alerts.

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

There is something with DCO, could you please check?

 - Bump Operator SDK version to `v0.26.3`
 - upgrade golangci to `v1.51.2`
 - dependabot
   - golangorg/x/text
   - golang.org/x/crypto
   - golang.org/x/net

Signed-off-by: Michal Kuritka <kuritka@gmail.com>
@kuritka kuritka force-pushed the bump-operatorsdk branch from e28a60c to 78d19a5 Compare April 1, 2023 12:49
@kuritka
Copy link
Collaborator Author

kuritka commented Apr 1, 2023

@ytsarev, fixed, thx!

@ytsarev ytsarev merged commit f0db5ac into master Apr 2, 2023
@ytsarev ytsarev deleted the bump-operatorsdk branch April 2, 2023 00:20
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.

2 participants