mirror of
https://github.com/golang/go
synced 2024-09-30 14:18:32 -06:00
internal/lsp: split only on the first = for Go environment variables
Follow-up from CL 243538. Change-Id: I15ac8ba738fa5326b18f7b179bed8623f4c57cfd Reviewed-on: https://go-review.googlesource.com/c/tools/+/243640 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
cf97b7f4a4
commit
9cbb971a18
2
internal/lsp/cache/view.go
vendored
2
internal/lsp/cache/view.go
vendored
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user