The error message “go: download go1.23 for darwin/arm64: toolchain not available” signifies the Go toolchain required to compile and execute Go programs for the specified target operating system (Darwin, which is macOS) and architecture (arm64, used in Apple Silicon processors) is not accessible or present within the current Go environment. This typically happens when the Go distribution installed does not include pre-built binaries for the target platform or the build process is unable to locate them.
Availability of the correct toolchain is crucial for cross-compilation. Without it, developers cannot build executables tailored to run on macOS devices powered by Apple Silicon. This hinders deployment and testing of Go applications on these systems. Historically, Go has aimed to support a wide array of platforms, but occasionally, delays or omissions can occur in providing pre-built toolchains for newer architectures, especially shortly after their introduction. Successful cross-compilation avoids the need to compile the program directly on the target device, streamlining the development process.