How to build two binaries on Linux host system failed
- Dominant language
- Shell
- Stars
- 1.5k
- Forks
- 198
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 28
Description
**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:
Contributor guide
Research direction
Start with the Makefile build and binaries targets, then trace projects/kubernetes/release and build/lib/common.sh to identify the git, AWS, and network steps. Read cmd/main_postsubmit.go and compare both command paths. Done means establishing whether an offline source archive can build kubelet and ecr-credential-provider and documenting the verified command or required inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, fedora, git, go, linux, shell
- Domain
- build-system, devops, release
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100