Wilfred Spiegelenburg created YUNIKORN-3189:
-----------------------------------------------

             Summary: Fix release build for the k8shim
                 Key: YUNIKORN-3189
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-3189
             Project: Apache YuniKorn
          Issue Type: Sub-task
          Components: release, shim - kubernetes
            Reporter: Wilfred Spiegelenburg


When building the release on mac OSX (tahoe) the release creation fails due to 
the incorrect directory being mounted in the build image. The error shows as:
{code:java}
go: downloading golang.org/x/exp v0.0.0-20250228200357-dead58393ab7
pkg/cmd/shim/main.go:32:2: github.com/apache/[email protected]: 
replacement directory ../core does not exist
pkg/common/constants/constants.go:22:2: 
github.com/apache/[email protected]: replacement directory 
../scheduler-interface does not exist
pkg/locking/locking.go:26:2: github.com/apache/[email protected]: 
replacement directory ../core does not exist
pkg/common/test/schedulerapi_mock.go:25:2: 
github.com/apache/[email protected]: replacement directory 
../scheduler-interface does not exist
pkg/common/test/recoverable_apps_mock.go:25:2: 
github.com/apache/[email protected]: replacement directory 
../scheduler-interface does not exist
make: *** [build/bin/yunikorn-scheduler] Error 1 {code}
Trace back shows that the buildroot is not correct as it should point to the 
parent dir:
{code:java}
building binary for scheduler docker imagedocker run -t --rm=true --volume 
"XXXXXsrc/github.com/apache/yunikorn-release/staging/tmp/apache-yunikorn-1.8.0-beta-src/k8shim:/buildroot"
 "golang:1.25.5" sh -c "cd /buildroot && \ CGO_ENABLED=0 GOOS=linux 
GOARCH=\"amd64\" go build \    -a \    -o=build/bin/yunikorn-scheduler \       
-trimpath \     -ldflags '-buildid= -extldflags \"-static\" -X 
github.com/apache/yunikorn-k8shim/pkg/conf.buildVersion=1.8.0-beta -X 
github.com/apache/yunikorn-k8shim/pkg/conf.buildDate=2025-12-18T00:06:28+00:00 
-X github.com/apache/yunikorn-k8shim/pkg/conf.isPluginVersion=false -X 
github.com/apache/yunikorn-k8shim/pkg/conf.goVersion=1.25.5 -X 
github.com/apache/yunikorn-k8shim/pkg/conf.arch=amd64 -X 
github.com/apache/yunikorn-k8shim/pkg/conf.coreSHA=3a03a73e3e22eea9822f2e214d2227c72eb16868
 -X 
github.com/apache/yunikorn-k8shim/pkg/conf.siSHA=f119c60089b50669f0aaec1b09f6f90636fe0312
 -X 
github.com/apache/yunikorn-k8shim/pkg/conf.shimSHA=c0b4dcb309ed1cc718bc7408c88b5cf16992c336'
 \   -tags netgo \   ./pkg/cmd/shim/" {code}
The check added in YUNIKORN-2874 is not correct and fails always.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to