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

coredns/1.11.3-r7: cve remediation #33298

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

Conversation

octo-sts[bot]
Copy link
Contributor

@octo-sts octo-sts bot commented Nov 5, 2024

Copy link
Contributor Author

octo-sts bot commented Nov 5, 2024

Gen AI suggestions to solve the build error:

Based on the error log, the main issue appears to be a Go version mismatch when building the kuma-coredns subpackage. Here are the steps to fix this:

  1. Update the Go version requirement in the melange YAML file to match what's needed (1.23.2). Add or modify the following in your coredns.yaml:
environment:
  GOTOOLCHAIN: "local"
  GO_VERSION: "1.23.2"

packages:
  go:
    version: "1.23.2"
  1. Remove the kuma-coredns subpackage if it's not required, or update its configuration. In your coredns.yaml, either:

    • Remove the kuma-coredns pipeline section if not needed
    • Or update its configuration to work with Go 1.23.2
  2. Clean up the build cache:

rm -rf .melangecache
  1. Make sure your melange YAML has the correct build dependencies:
environment:
  GOMODCACHE: "${{targets.destdir}}/go/pkg/mod"
  
dependencies:
  build:
    - go-1.23
    - git
    - make
    - build-base
  1. Try rebuilding with:
make MELANGE_EXTRA_OPTS="--create-build-log --cache-dir=.melangecache" REPO="./packages" package/coredns -j1

If the issue persists, you may need to:

  • Check if there are any vendored dependencies that need updating
  • Verify the go.mod and go.sum files are correct
  • Ensure all required build dependencies are available in the Wolfi repositories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants