update to latest golang.org/x dependencies

This commit is contained in:
Mechiel Lukkien
2025-04-16 20:01:32 +02:00
parent 1b2b152cb5
commit 805ae0d827
35 changed files with 1023 additions and 413 deletions

View File

@ -90,7 +90,7 @@ func findExternalDriver(cfg *Config) driver {
const toolPrefix = "GOPACKAGESDRIVER="
tool := ""
for _, env := range cfg.Env {
if val := strings.TrimPrefix(env, toolPrefix); val != env {
if val, ok := strings.CutPrefix(env, toolPrefix); ok {
tool = val
}
}