Comments (15)
/sig windows
from kubernetes.
xref: #125067
from kubernetes.
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
i can't repro locally with go 1.22.
it seems workspace related.
from kubernetes.
@neolit123 possibly kubernetes/test-infra#32647 ?
from kubernetes.
/triage accepted
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
This probably means we're building without setting up the go environment, which makes sense because our scripts support linux primarily.
We should teach the windows builds to respect toolchain / .go-version / make sure they're using a go version new enough to bootstrap that.
from kubernetes.
I don't think kubernetes/test-infra#32647 is related, because that's the go version for the tool launching cloudbuilds, but we're seeing is the go version where the wincat build happens.
from kubernetes.
/assign
from kubernetes.
@BenTheElder Ack, took the opportunity to fix it anyway even if it was not the real culprit.... i am trying make OUTPUT_TYPE=registry OS=windows ARCH=amd64 OSVERSION=1809 container
which seems to work fine locally as well (gets past the stage where wincat failed to build)
from kubernetes.
The strange part is we should already be running this step inside kube-cross with the expected version, so ...
We can even see in the logs:
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/build \
registry.k8s.io/build-image/kube-cross:v1.31.0-go1.22.3-bullseye.0 \
/bin/bash -c "\
cd /build && \
x86_64-w64-mingw32-gcc -Os -Wall -Werror -static -DVERSION=v3.10- -o bin/pause-windows-amd64 windows/pause.c && \
x86_64-w64-mingw32-strip bin/pause-windows-amd64.exe"
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
reading go.work: /workspace/go.work:3: invalid go version '1.22.0': must match format 1.23
from kubernetes.
Oh, I see, we're not containerizing all of it.
from kubernetes.
@BenTheElder if you start docker run -it --entrypoint bash gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230623-56e06d7c18
and git clone k8s, you can see the problem
23a99242e41f:/workspace/kubernetes/build/pause# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
reading go.work: /workspace/kubernetes/go.work:3: invalid go version '1.22.0': must match format 1.23
unfortunately the newest version gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-bcb4e42f96
also does not work and fails with a slightly different reason (better reason!)
721fc0a9976c:/workspace/kubernetes/build/pause# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/wincat-windows-amd64 windows/wincat/wincat.go
go: ../../go.work requires go >= 1.22.0 (running go 1.21.6; GOTOOLCHAIN=local)
from kubernetes.
@BenTheElder kubernetes/test-infra#32652 PTAL
from kubernetes.
filed #125105 PTAL, this should avoid us depending on the GCB image specifics
from kubernetes.
This is fixed by #125105. https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/post-kubernetes-push-image-pause/1793743356572995584
from kubernetes.
#125108 will also go ahead and pickup the current gcb-gcloud-docker while we're at it
from kubernetes.
Related Issues (20)
- Explicit version specification in go directive fouling corporate Snyk scans HOT 12
- `kubectl wait --for=jsonpath='{.status.readyReplicas}'=1` fails in 1.31.0-rc.1 HOT 3
- kube-scheduler updates pod status mistakenly during preemption HOT 12
- Status cannot be changed via pod patching HOT 4
- Get "invalid configuration: unable to read certificate-authority " error with clientcmd.RESTConfigFromKubeConfig function HOT 4
- Pod status phase misses Pending transition after node reboot HOT 13
- ResourceSliceList object has `listMeta` field instead of `metadata` field HOT 11
- Pkgs.k8s.io repository for Red Hat based distributions for the latest release 1.31.0 has dependency issue! HOT 12
- QosClass of pod status shouldn't be changeable HOT 5
- kube-apiserver and other components no longer honor --version build ID overrides HOT 3
- Fake client returns unexpected results on errors since 1.31 HOT 8
- Compromised container can trigger OOM with `kubectl cp` HOT 11
- The pod initialization container initcontainers returns No space left on device HOT 6
- [kubelet] Pod is deleted due to Node not ready, deletions is cancelled, kubelet is not aware container is not running HOT 6
- Container network metrics missing with kubelet 1.30 and crio-1.30 HOT 7
- Emulation version: Remove hard coded DefaultKubeBinaryVersion value. HOT 3
- [Bug] Scheduler fails to schedule a pod due to a race condition HOT 11
- kube-controller-manager takes 100% cpu on master HOT 13
- static pod stuck in "Waiting for volumes to unmount for pod" for a longtime on single node by chance HOT 25
- client-go 1.31 fake Apply requires `metadata.name` to get set, while live client does not HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes.