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 go.sum Mismatch for kubebuilder 4.1.1 #6867

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adambkaplan
Copy link

Description of the change:

Golang reports that the current checksum for kubebuilder/v4 is invalid. This fixes the checksum in go.sum to the current version, which unblocks builds. That said, this change should be held until the proper checksum for the v4.1.1 tag can be verified.

Motivation for the change:

Golang 1.22.5 is reporting compile errors due to checksum mismatch.

Checklist

If the pull request includes user-facing changes, extra documentation is required:

@adambkaplan
Copy link
Author

fyi @camilamacedo86 - I ran into this issue today while trying to experiment with a potential feature.

Golang reports that the current checksum for kubebuilder/v4 is invalid.
This fixes the checksum in `go.sum` to the current version, which
unblocks builds. That said, this change should be held until the proper
checksum for the `v4.1.1` tag can be verified.

Signed-off-by: Adam Kaplan <[email protected]>
@acornett21
Copy link
Contributor

@adambkaplan I'm not sure I follow, this was built with go 1.22.5 with no issues.

@adambkaplan
Copy link
Author

I'm getting this error when I attempt to build locally (Fedora 40, go 1.22.7):

$ make build
/usr/bin/go build -gcflags "all=-trimpath=/home/adkaplan/go/src/github.com/operator-framework" -asmflags "all=-trimpath=/home/adkaplan/go/src/github.com/operator-framework" -ldflags " -X 'github.com/operator-framework/operator-sdk/internal/version.Version=v1.38.0' -X 'github.com/operator-framework/operator-sdk/internal/version.GitVersion=v1.38.0' -X 'github.com/operator-framework/operator-sdk/internal/version.GitCommit=0735b20c84e5c33cda4ed87daa3c21dcdc01bb79' -X 'github.com/operator-framework/operator-sdk/internal/version.KubernetesVersion=v1.30.0' -X 'github.com/operator-framework/operator-sdk/internal/version.ImageVersion=v1.38.0' "  -o build ./cmd/{operator-sdk,helm-operator}
verifying sigs.k8s.io/kubebuilder/[email protected]: checksum mismatch
        downloaded: h1:cYSgEfjS5qzTdc1RgPHWZgCrgd1USbz2iO+mFr7BPls=
        go.sum:     h1:aUdzTq3FjpuNIqzlJRTtRJMKZBNQnTwd05PCu7xVeAY=

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:85: build] Error 1

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