From 17d52ce84d5733dd0f23a4c867c044861c3e79ad Mon Sep 17 00:00:00 2001 From: Steven Chen Date: Fri, 6 Nov 2026 17:47:38 +0000 Subject: [PATCH 1/2] Upgrade go-runewidth to v0.0.31 to cut CLI startup time v0.0.26 and v0.0.27 build a 2.2 MB rune-width lookup table in init(), which costs ~30ms on every CLI invocation. v0.0.31 builds it lazily. Co-authored-by: Isaac --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 51a2b8d19f5..defd4efbaab 100644 --- a/go.mod +++ b/go.mod @@ -79,7 +79,7 @@ require ( github.com/kr/text v0.2.0 // indirect github.com/lucasb-eyer/go-colorful v1.4.1 // indirect github.com/mattn/go-localereader v0.0.1 // indirect - github.com/mattn/go-runewidth v0.0.27 // indirect + github.com/mattn/go-runewidth v0.0.31 // indirect github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect diff --git a/go.sum b/go.sum index 93eef9ec4a8..561e31331dc 100644 --- a/go.sum +++ b/go.sum @@ -130,8 +130,8 @@ github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsRe github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88= -github.com/mattn/go-runewidth v0.0.27 h1:Feg/Oou5zI/wnpgDF6omIU0OokC9GxLC/WRknhVlIR0= -github.com/mattn/go-runewidth v0.0.27/go.mod h1:3qAiGCV4Koz/yuveO58qUefmUTRm8r0IGEXZ9jeHp/8= +github.com/mattn/go-runewidth v0.0.31 h1:1oCV4ReTlosDBc6rYRw5cL8S/4y8iv5oRl4SJ5IBgwo= +github.com/mattn/go-runewidth v0.0.31/go.mod h1:3qAiGCV4Koz/yuveO58qUefmUTRm8r0IGEXZ9jeHp/8= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI= From f82bbd696a159aa7b2c87e650a9f07377c4ac44f Mon Sep 17 00:00:00 2001 From: Steven Chen Date: Fri, 6 Nov 2026 17:55:45 +0000 Subject: [PATCH 2/2] Add changelog fragment for go-runewidth upgrade Co-authored-by: Isaac --- .nextchanges/dependency-updates/go-runewidth-v0.0.31.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nextchanges/dependency-updates/go-runewidth-v0.0.31.md diff --git a/.nextchanges/dependency-updates/go-runewidth-v0.0.31.md b/.nextchanges/dependency-updates/go-runewidth-v0.0.31.md new file mode 100644 index 00000000000..2266d3b11af --- /dev/null +++ b/.nextchanges/dependency-updates/go-runewidth-v0.0.31.md @@ -0,0 +1 @@ +* Upgrade `github.com/mattn/go-runewidth` to v0.0.31, which removes ~30ms of startup time from every command. ([#7391](https://github.com/databricks/cli/pull/7391))