kubernetes: Unable to run make lint

What happened?

If I try to run make lint in my dev environment, I get a security error saying the checksum mismatches.

kehannon@kehannon-thinkpadp1gen4i:~/Work/kubernetes$ make lint
installing golangci-lint and logcheck plugin from hack/tools into /home/kehannon/Work/kubernetes/_output/local/bin
go: downloading github.com/Abirdcfly/dupword v0.0.13
go: downloading github.com/Antonboom/testifylint v0.2.3
go: downloading github.com/butuzov/ireturn v0.2.1
go: downloading github.com/catenacyber/perfsprint v0.2.0
go: downloading github.com/daixiang0/gci v0.11.2
go: downloading github.com/golangci/gofmt v0.0.0-20231018234816-f50ced29576e
go: downloading github.com/jgautheron/goconst v1.6.0
go: downloading github.com/macabu/inamedparam v0.1.2
go: downloading github.com/mgechev/revive v1.3.4
go: downloading github.com/nunnatsa/ginkgolinter v0.14.0
go: downloading github.com/polyfloyd/go-errorlint v1.4.5
verifying github.com/butuzov/ireturn@v0.2.1: checksum mismatch
        downloaded: h1:QXLHriOCzRI8VN9JPhfDcaaxg3TMFD46n1Pq6Wf5zEw=
        go.sum:     h1:w5Ks4tnfeFDZskGJ2x1GAkx5gaQV+kdU3NKNr3NEBzY=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
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'.
make: *** [Makefile:350: lint] Error 1

What did you expect to happen?

I should be able to run the linter.

How can we reproduce it (as minimally and precisely as possible)?

Run make lint on master.

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
# paste output here

master

Cloud provider

NA

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, …) and versions (if applicable)

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

It works without GOPROXY=direct.

Found it: https://github.com/butuzov/ireturn/issues/69