Skip to content

How to build two binaries on Linux host system failed #4750

Description

@phracek

What happened:
I would like to build two binaries kubelet and ecr-credential-provider and create a RPM package.
The sources were downloaded from this url https://github.com/aws/eks-distro/archive/v1-35-eks-5/eks-distro-1.35.tar.gz

Is it possible to supress calling aws and git commands?

The current build failed with following reason:

 make RELEASE_ENVIRONMENT=production BASE_DIRECTORY=/builddir/build/BUILD/eks-distro-1-35-eks-5 GOLANG_VERSION=1.25.11 build
fatal: not a git repository (or any of the parent directories): .git

Unable to locate credentials. You can configure credentials by running "aws login".

Unable to locate credentials. You can configure credentials by running "aws login".
go vet cmd/main_postsubmit.go
go run cmd/main_postsubmit.go \
	--target=build \
	--release-branch=1-35 \
	--release=5 \
	--region=us-west-2 \
	--account-id= \
	--image-repo=localhost:5000 \
	--dry-run=true \
	--rebuild-all=false \
	--build-kubernetes-first=true
2026/06/24 08:57:14 Running postsubmit - dry-run: true
2026/06/24 08:57:14 Error running finding git root: exit status 128
exit status 1
make: *** [Makefile:50: build] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.CmbKTZ (%build)

RPM build errors:

For building binaries by make binaries I have got the problem like this:

+ export PUSH_IMAGE=false
+ PUSH_IMAGE=false
+ make RELEASE_ENVIRONMENT=production BASE_DIRECTORY=/builddir/build/BUILD/eks-distro-1-35-eks-5 GOLANG_VERSION=1.25.11 binaries
fatal: not a git repository (or any of the parent directories): .git
make binaries -C projects/kubernetes/release
make[1]: Entering directory '/builddir/build/BUILD/eks-distro-1-35-eks-5/projects/kubernetes/release'
fatal: not a git repository (or any of the parent directories): .git

------------------- 2026-06-24T09:08:53.452+0000 Starting target=release-src -------------------
Cloning repo release-src
source /builddir/build/BUILD/eks-distro-1-35-eks-5/build/lib/common.sh && retry git clone https://github.com/kubernetes/release.git release-src
Cloning into 'release-src'...
fatal: unable to access 'https://github.com/kubernetes/release.git/': Could not resolve host: github.com
Command failed. Attempt 2/120:
Cloning into 'release-src'...

What you expected to happen:
What command shall I call to build these two binaries.
GOLANG_VERSION is 1.25.11

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
The build is performed on Linux (Fedora) distribution.

Environment:

  • EKS Distro Release Channel:
  • EKS Distro Release:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions