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)
- feat(e2e-node-test): add support for custom network/subnet parameters with remote option HOT 3
- [Failing test] test ticket HOT 3
- Differing apt package dependencies between 1.29.8-1.29.9 and 1.28.13-1.28.14 HOT 6
- During the deployment of Kubernetes 1.31.0 and MultiCIDRServiceAllocator was enabled, which then led to a failure when creating a service. HOT 7
- Removed important check in kubeadm. HOT 9
- Events can not reference objects that use a different name validation HOT 5
- missing release from https://storage.googleapis.com/kubernetes-release HOT 4
- duplicate flag "--runtime-config" when calling run_remote.go on hack/make-rules/test-e2e-node.sh HOT 3
- Support Defaulting in CRD with CEL expression HOT 5
- ConfigMap subpath mount could have transient "no such file or directory: unknown" error if it's patched before container startup HOT 2
- [Flaky test] GCE Conformance Kubernetes e2e suite.[It] [sig-node] Pods should support retrieving logs from the container over websockets [NodeConformance] [Conformance] HOT 5
- The controller-manager monitors customized resources. HOT 4
- Completed Jobs Not Fully Removed After EKS v1.29 Update HOT 2
- The `update-vendor.sh` is broken with `GOPROXY=direct` HOT 6
- Inconsistent error message when attempting SSA with the wrong uid HOT 2
- E2E: E2eNode Suite.[It] [sig-node] ImageGarbageCollect [Serial] [NodeFeature:GarbageCollect] when ImageMaximumGCAge is set should not GC unused images prematurely HOT 1
- [golang/go] x/net/http2: configurable server pings HOT 1
- Emulation Version cannot be set in integration test
- Ephemeral storage exhausted by users not mounting the emptyDir HOT 3
- [help] when use kruise client, go mod dep issue HOT 3
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.