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

Upgrade dependency "github.com/tektoncd/cli" #521

Open
Ben131-Go opened this issue Feb 1, 2023 · 0 comments
Open

Upgrade dependency "github.com/tektoncd/cli" #521

Ben131-Go opened this issue Feb 1, 2023 · 0 comments

Comments

@Ben131-Go
Copy link

Background

Repo github.com/mattmoor/mink depends on github.com/tektoncd/cli@v0.23.1.

https://github.com/mattmoor/mink/blob/master/go.mod#L65

However, comparing version v0.23.1 of github.com/tektoncd/cli from proxy.golang.org and github, there are inconsistencies.

commit time of the copy on github.com

"committer": {
      "name": "Piyush Garg",
      "email": "pgarg@redhat.com",
      "date": "2022-03-25T11:16:35Z"
    }

commit time of the copy on proxy.golang.org

{"Version":"v0.23.1","Time":"2022-03-24T16:52:01Z"}

So the checksum from the code in github does not match the checksum saved in sum.golang.org. The v0.23.1 tag of github.com/tektoncd/cli might have been retagged after a minor edition on github. I guess you use proxy.golang.org to get dependencies, but that also shows that your project is depending on the copy of github.com/tektoncd/cli@v0.23.1 before its edition. Depending upon such inconsistent tag version may also result in some unexpected errors as well as build errors due to different proxy settings.

For example, when someone who does not use proxy.golang.org, say GOPROXY=direct, attempts to get github.com/tektoncd/cli@v0.23.1, the following error occurs.

go: downloading github.com/tektoncd/cli v0.23.1
go: github.com/tektoncd/cli@v0.23.1: verifying module: checksum mismatch
        downloaded: h1:zpv0CneB/AYpKNrvpoWYbshhDthz03useSTVB9c4FMc=
        sum.golang.org: h1:EpT6kF66ADpg7pjnl8TIt36Kn43e1n94UJiUS5l3ZLA=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

So, this is a reminder in the hope that you can get rid of this problematic version of project github.com/tektoncd/cli.

Solution

1. Bump the version of dependency github.com/tektoncd/cli

I would recommend bumping the version of github.com/tektoncd/cli to a new release to ensure dependency copy in proxy.golang.org and github in sync.

References

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

No branches or pull requests

1 participant