Skip to content

Commit e5417d7

Browse files
findleyrgopherbot
authored andcommitted
gopls/internal/cache: log go env in TestZeroConfigAlgorithm
Add an additional log message to help diagnose the problem encountered by a user in golang/go#70196. For golang/go#70196 Change-Id: I8347d842d5a9327fa6797229bf64dc4407f7aa61 Reviewed-on: https://go-review.googlesource.com/c/tools/+/625415 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Hongxiang Jiang <[email protected]> Auto-Submit: Robert Findley <[email protected]>
1 parent 691997a commit e5417d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gopls/internal/cache/session_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,14 @@ replace (
340340
t.Fatal(err)
341341
}
342342
}
343-
env, err := FetchGoEnv(ctx, toURI(f.dir), opts)
343+
uri := toURI(f.dir)
344+
env, err := FetchGoEnv(ctx, uri, opts)
344345
if err != nil {
345346
t.Fatalf("FetchGoEnv failed: %v", err)
346347
}
348+
t.Logf("FetchGoEnv(%q) = %+v", uri, env)
347349
folders = append(folders, &Folder{
348-
Dir: toURI(f.dir),
350+
Dir: uri,
349351
Name: path.Base(f.dir),
350352
Options: opts,
351353
Env: *env,

0 commit comments

Comments
 (0)