diff --git a/internal/lsp/cache/view.go b/internal/lsp/cache/view.go index 133dbcc4ab..95f03b173a 100644 --- a/internal/lsp/cache/view.go +++ b/internal/lsp/cache/view.go @@ -350,7 +350,7 @@ func (v *View) WriteEnv(ctx context.Context, w io.Writer) error { fullEnv[k] = v } for _, v := range env { - s := strings.Split(v, "=") + s := strings.SplitN(v, "=", 2) if len(s) != 2 { continue }