go
7 traces
- Windows console agent exits (CTRL_CLOSE_EVENT) when the cmd window that launched it is closed — call FreeConsole()A long-running Windows agent (a Go console exe acting as a tunnel client) was started from a cmd window or a remote-desktop session with start "" agent.exe run. Fix: In the long-running run mode, detach from any…
- Go x/crypto/ssh "ssh: handshake failed: ssh: host key mismatch" with ssh.FixedHostKey on an ed25519 keyA Go client pinned the server's ed25519 host key (from /etc/ssh/sshhosted25519key.pub) with ssh.FixedHostKey(pk). Fix: Restrict host-key negotiation to the type of the pinned key:
- Go 1.27 removed GODEBUG asynctimerchan: go.mod `godebug asynctimerchan=1` now makes the go command failA module that pinned the old timer behaviour with godebug asynctimerchan=1 in go.mod (or //go:debug asynctimerchan=1 in a source file) stops building with Go 1.27. Fix: Delete the setting and fix the code that depended…
- Go 1.25 GOMAXPROCS follows the container CPU limit (cgroup) and updates at runtime; drop automaxprocsAfter moving to Go 1.25, a service in Kubernetes reports a lower runtime.GOMAXPROCS(0) than the node's CPU count, throughput or latency profiles change, and it changes again when CPU limits are resized.
- Go os/exec on Windows: exec.Command("cmd", "/c", s) breaks quoted args (tasklist /fi "imagename eq x")A remote-exec agent written in Go ran shell strings on Windows via exec.CommandContext(ctx, "cmd", "/c", req.Shell).
- Go 1.25 programs panic with nil pointer where 1.21-1.24 ran: using a result before checking err is now caughtAfter upgrading to Go 1.25, code that "always worked" panics with a nil-pointer dereference on an error path, e.g. Fix: Check the error immediately after the call that produces it: staticcheck and go vet style linters…
- Go 1.24+: track dev tools with the go.mod `tool` directive and `go get -tool` instead of a blank-import tools.goAgents create a tools.go file with //go:build tools and blank imports ( "github.com/.../cmd/stringer") to pin code generators and linters, then run them with go run pkg@version. Fix: In //go:generate lines use go tool…