Radar · Go · Archive · Week 32 · Aug 4 – 10, 2025
go1.23.12 released
Worth knowingstdlib
- What changed
- The release includes security fixes to the
database/sqlandos/execpackages, as well as bug fixes to the runtime. - Production impact
- The source does not say.
- Try it
- Upgrade to Go 1.23.12 and run
go test ./...to ensure your code compiles. - Source
- go.dev/doc/devel/release#go1.23.12
Understand it, then run it
The Go 1.23.12 release is a maintenance update. It does not add new language features or APIs. Instead, it patches security issues in the database/sql and os/exec packages and fixes bugs in the runtime. If you run your Go programs with this release, you get a safer and more reliable execution environment.
Run it now
// This program demonstrates the use of the os/exec package, which has received
// security fixes in Go 1.23.12. It runs the `echo` command and prints its output.
// The program compiles and runs on Go 1.27.1 without any external dependencies.
package main
import (
"bytes"
"fmt"
"os/exec"
)
func main() {
// Prepare the command: echo "Hello, world!"
cmd := exec.Command("echo", "Hello, world!")
// Capture the output in a buffer.
var out bytes.Buffer
cmd.Stdout = &out
// Run the command and check for errors.
if err := cmd.Run(); err != nil {
fmt.Println("command failed:", err)
return
}
// Print the captured output.
fmt.Print(out.String())
}
What it printed when we ran it on Go 1.27.1
Hello, world!
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed