diff --git a/build/pause/Dockerfile_windows b/build/pause/Dockerfile_windows index daa7558ec00..81b6ddd58b6 100644 --- a/build/pause/Dockerfile_windows +++ b/build/pause/Dockerfile_windows @@ -16,7 +16,7 @@ ARG BASE FROM ${BASE} ARG ARCH ADD bin/pause-windows-${ARCH}.exe /pause.exe -ADD windows/wincat.exe /Windows/System32/wincat.exe +ADD bin/wincat-windows-amd64 /Windows/System32/wincat.exe # NOTE(claudiub): docker buildx sets the PATH env variable to a Linux-like PATH, # which is not desirable. See: https://github.com/moby/buildkit/issues/1560 diff --git a/build/pause/Makefile b/build/pause/Makefile index 4791ac91751..16abd317f97 100644 --- a/build/pause/Makefile +++ b/build/pause/Makefile @@ -121,8 +121,8 @@ bin/${BIN.linux}-$(OS)-$(ARCH): $(SRCS) $(TRIPLE)-gcc $(CFLAGS) -o $@ $^ && \ $(TRIPLE)-strip $(foreach binary, $@, ${binary}${EXTENSION})" -bin/wincat-windows-${ARCH}: - CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o windows/wincat.exe windows/wincat/wincat.go +bin/wincat-windows-${ARCH}: windows/wincat/wincat.go + CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o $@ $^ container: .container-${OS}-$(ARCH) .container-linux-$(ARCH): bin/$(BIN)-$(OS)-$(ARCH) diff --git a/build/pause/windows/wincat/wincat.go b/build/pause/windows/wincat/wincat.go index 1bd57a3f067..2f671c45726 100644 --- a/build/pause/windows/wincat/wincat.go +++ b/build/pause/windows/wincat/wincat.go @@ -14,9 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. */ -// package wincat connects to the given host and port and redirects its stdin to the connection and +// package main connects to the given host and port and redirects its stdin to the connection and // the connection's output to stdout. This is currently being used for port-forwarding for Windows Pods. -package wincat +package main import ( "fmt"